Skip to content

Instantly share code, notes, and snippets.

@treble37
Forked from Belgand/gist:2856947
Created February 11, 2013 04:45
Show Gist options
  • Save treble37/4752685 to your computer and use it in GitHub Desktop.
Save treble37/4752685 to your computer and use it in GitHub Desktop.

Sublime Text 2 – Useful Shortcuts (Ubuntu)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command palette
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+Shift+M select content into brackets
Ctrl+Backspace delete previous word
Ctrl+Delete delete next word
Ctrl+Shift+K delete line
Ctrl+KK or Ctrl+Shift+Delete delete from cursor to end of line
Ctrl+K+Backspace or Ctrl+Shift+Backspace delete from cursor to start of line
Ctrl+Shift+D duplicate line(s)
Ctrl+J join lines
Ctrl+KU upper case
Ctrl+KL lower case
Ctrl+ / comment
Ctrl+Shift+/ block comment
Ctrl+Z undo
Ctrl+Y redo or repeat
Ctrl+U soft undo (movement undo)
Ctrl+Shift+V past and ident
Ctrl+Space autocomplete
Ctrl+M jump to matching brackets

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+Shift+F find in files
Ctrl+I incremental search
F3 find next
Ctrl+Shift+H replace selected
Ctrl+E copy selection to find buffer
Ctrl+Shift+E copy selection to replace buffer

Splits/Tabs

Alt+Shift+1 single column
Alt+Shift+2/3/4 two/three/four columns (vertical split)
Alt+Shift+5 grid (4 groups)
Alt+Shift+8/9 two/three rows (horizontal split)
Ctrl+[1,2,3,4] focus group
Ctrl+Shift+[1,2,3,4] move file to group
Ctrl+[1,2,3…] select tab

Bookmarks

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