Skip to content

Instantly share code, notes, and snippets.

@rodrigore
Created July 10, 2012 17:28
Show Gist options
  • Save rodrigore/3084893 to your computer and use it in GitHub Desktop.
Save rodrigore/3084893 to your computer and use it in GitHub Desktop.
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

General

Ctrl+KB toggle side bar
Ctrl+⇧+P command prompt
Ctrl+` python console
Ctrl+N new file

Editing

Ctrl+L select line (repeat select next lines)
Ctrl+D select word (repeat select others occurrences in context for multiple editing)
Ctrl+⇧+M select content into brackets
Ctrl+⇧+↩ insert line before
Ctrl+↩ insert line after
Ctrl+X delete line
Ctrl+KK delete from cursor to end of line
Ctrl+K+⌫ delete from cursor to start of line
Ctrl+⇧+D duplicate line(s)
Ctrl+J join lines
Ctrl+KU upper case
Ctrl+KL lower case
Ctrl+ / comment
Ctrl+⇧+/ block comment
Ctrl+Y redo or repeat
Ctrl+⇧+V past and ident
Alt+/ autocomplete (repeat to select next suggestion). Default is Ctrl+Space, but it always reserved for language change in Chinese Windows environment.
Ctrl+M jump to matching brackets
Ctrl+U soft undo (movement undo)

Navigation/Goto Anywhere

Ctrl+P goto anyway. Search files by name in your project.
Ctrl+R goto symbol(functions and classes) in the file. Same as Ctrl+P, then type @
Ctrl+; goto word in current file. Same as Ctrl+P, then type #
Ctrl+G goto line in current file. Same as Ctrl+P, then type :

Find/Replace

Ctrl+F find
Ctrl+H replace
Ctrl+⇧+F find in files

Splits/Tabs

Alt+⇧+1 single column
Alt+⇧+2 two columns
Alt+⇧+5 grid (4 groups)
Ctrl+[1,2,3,4] focus group
Ctrl+⇧+[1,2,3,4] move file to group
Ctrl+[1,2,3…] select tab

Bookmarks

Ctrl+F2 toggle bookmark
F2 next bookmark
⇧+F2 previous bookmark
Ctrl+⇧+F2 clear bookmarks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment