Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I have a command A of OBjective-C that has key Command-Shift-R, and command B of Text mode that has the same hotkey, I have a pop up with the activation key of Command-Shift-R regardless of the mode I'm in.

How can I make it mode sensitive? I mean, how can I run Objective-C command only when I'm in Objective-C mode?

share|improve this question
up vote 1 down vote accepted

You need to assign a scope to the command.

Open Bundles » Bundle Editor » Bundle Editor... and select the command you want to change.

Look for the command in the Objective-C category and select it, then enter a scope to the lower right, probably source.objc, source.objc++. Then the command will be available anywhere in files with Objective-C highlighting.

Check out the other commands in the Objective-C category for more specialized scopes, e.g. Documentation for Selector and its scope meta.bracketed.objc | meta.function.objc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.