Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a comprehensive list of keyboard shortcuts for use in Sublime Text 2?

I'm specifically looking for shortcuts that grant me the functionality of the arrow keys, the Home, Delete (NOT Backspace) and End keys without moving my hands off of the home row...

share|improve this question

4 Answers 4

I should have dug more before I asked this... They are called "Key Bindings" and every single one of them is configurable from within a text file. Click "Preferences" > "Default Key Bindings" to view them. Copy and paste the ones you want to edit into "Preferences" > "User Key Bindings" to and change to your hearts content.

Here is the documentation.

My problem was that I was searching for "keyboard shortcuts" instead of "Key Bindings". Whoops...

To specifically address the question I had, about how to replicate the Delete, Home, End and Arrow keys, I have modified my "User Key Bindings" file to look like the following:

[
    { "keys": ["shift+backspace"], "command": "right_delete" },
    { "keys": ["ctrl+backspace"], "command": "right_delete" },

    { "keys": ["ctrl+j"], "command": "move", "args": {"by": "characters", "forward": false} },
    { "keys": ["ctrl+l"], "command": "move", "args": {"by": "characters", "forward": true} },
    { "keys": ["ctrl+i"], "command": "move", "args": {"by": "lines", "forward": false} },
    { "keys": ["ctrl+k"], "command": "move", "args": {"by": "lines", "forward": true} },
    { "keys": ["ctrl+shift+j"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
    { "keys": ["ctrl+shift+l"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
    { "keys": ["ctrl+shift+i"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
    { "keys": ["ctrl+shift+k"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },

    { "keys": ["ctrl+alt+j"], "command": "move", "args": {"by": "words", "forward": false} },
    { "keys": ["ctrl+alt+l"], "command": "move", "args": {"by": "word_ends", "forward": true} },
    { "keys": ["ctrl+shift+alt+j"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
    { "keys": ["ctrl+shift+alt+l"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} },

    { "keys": ["ctrl+,"], "command": "move_to", "args": {"to": "bol", "extend": false} },
    { "keys": ["ctrl+."], "command": "move_to", "args": {"to": "eol", "extend": false} },
    { "keys": ["ctrl+shift+,"], "command": "move_to", "args": {"to": "bol", "extend": true} },
    { "keys": ["ctrl+shift+."], "command": "move_to", "args": {"to": "eol", "extend": true} }
]
share|improve this answer
3  
The documentation you linked to applies to Sublime Text 1. For version 2, there is documentation here: sublimetext.com/docs/2/settings.html and unofficially(?) here: docs.sublimetext.info/en/latest/customization/key_bindings.html –  Jo Liss Jun 27 '12 at 15:34

I created a single page cheat sheet with the default keybindings for Windows:

Sublime Cheat Sheet

Link to Github version of PDF for futureproofing

You can also check out this post on my personal blog which additionally provides a quick explanation of the different possible commands.

share|improve this answer

You may not have heard of it but there is an app that shows you all the shortcuts of any app on your mac (this includes sublime text 2). You can find it at http://www.grandtotal.biz/CheatSheet/

Standard usage: just hold the command button while the app is running.

share|improve this answer
    
wow, handy, tx! –  memeLab Mar 8 '13 at 22:51

Here's the one I am using: http://www.cheatography.com/njovin/cheat-sheets/sublime-text-2-keyboard-shortcuts-windows/

The site lets you narrow down by typing a few words describing the action or the keys.

share|improve this answer

Your Answer

 
discard

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.