Skip to content

Instantly share code, notes, and snippets.

@chauncey
Forked from lucasfais/gist:1207002
Last active October 9, 2015 10:27
Show Gist options
  • Save chauncey/3488620 to your computer and use it in GitHub Desktop.
Save chauncey/3488620 to your computer and use it in GitHub Desktop.
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts

General

Linux OS X Shortcut
SuperT ⌘T go to file
Super^P ⌘⌃P go to project
SuperR ⌘R go to methods
^G ⌃G go to line
SuperKB ⌘KB toggle side bar
Super⇧P ⌘⇧P command prompt
⌃ ` ⌃ ` python console
Super⇧N ⌘⇧N new window (useful for new project)

Editing

Linux OS X Shortcut
Super⇧N ⌘⇧N select line (repeat select next lines)
SuperD ⌘D select word (repeat select others occurrences in context for multiple editing)
⌃⇧M ⌃⇧M select content into brackets
Super⇧↩ ⌘⇧↩ insert line before
Super↩ ⌘↩ inter line after
⌃⇧K ⌃⇧K delete line
SuperKK ⌘KK delete from cursor to end of line
SuperK⌫ ⌘K⌫ delete from cursor to start of line
Super⇧D ⌘⇧D duplicate line(s)
SuperJ ⌘J join lines
SuperKU ⌘KU upper case
SuperKL ⌘KL lower case
Super / ⌘ / comment
Super⌥ / ⌘⌥ / block comment
SuperY SuperY redo or repeat
Super⇧V Super⇧V past and ident
⌃ space ⌃ space autocomplete (repeat to select next suggestion)
⌃M ⌃M jump to matching brackets
SuperU ⌘U soft undo (movement undo)
Super⇧U ⌘⇧U soft redo (movement redo)

XML/HTML

Linux OS X Shortcut
Super⇧A ⌘⇧A select content into tag
Super⌥ . ⌘⌥ . close tag

Find/Replace

Linux OS X Shortcut
SuperF ⌘F find
Super⌥F ⌘⌥F replace
Super⌥G ⌘⌥G find next occurrence of current word
Super⌃G ⌘⌃G select all occurrences of current word for multiple editing
Super⇧F ⌘⇧F find in files

Splits/Tabs

Linux OS X Shortcut
Super⌥1 ⌘⌥1 single column
Super⌥2 ⌘⌥2 two columns
Super⌥5 ⌘⌥5 grid (4 groups)
⌃[1,2,3,4] ⌃[1,2,3,4] focus group
⌃⇧[1,2,3,4] ⌃⇧[1,2,3,4] move file to group
Super[1,2,3...] ⌘[1,2,3...] select tab

Bookmarks

Linux OS X Shortcut
SuperF2 ⌘F2 toggle bookmark
F2 F2 next bookmark
⇧F2 ⇧F2 previous bookmark
Super⇧F2 ⌘⇧F2 clear bookmarks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment