Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I am using Sublime Text 2 on OS X, and I really like that editor. Now I need to explain the way Sublime Text 2 works to someone who is using Windows, and of course there's no Cmd key there. I guess that the equivalent would be Ctrl, but I'm not sure if this works for Sublime Text 2 in all cases.

Does anybody know if OS X and Windows key bindings are the same, if you simply exchange Cmd for Ctrl?

Or does anybody know where you can look the shortcuts up, so I can manually compare them?

share|improve this question
up vote 2 down vote accepted

Many of the key bindings are the same, but not all of them, so you can't just automatically exchange Ctrl for Command ⌘.

However, with Sublime Text 2 it is quite easy to look up all the default key bindings that come with the editor. Navigate to Preferences -> Browse Packages... to open up the Packages folder. Go to the Default subfolder and open the Default (OSX).sublime-keymap and Default (Windows).sublime-keymap files, and set the syntax to JavaScript -> JSON for readability. These files contain all of the key bindings that come with Sublime (but not the ones that plugins may install), so you can search for an OSX binding in one file, get the "command" name, then search for that in the Windows file to get its equivalent.

Note that in the OSX bindings the Command key is called super.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .