Skip to content

Instantly share code, notes, and snippets.

@ammonkc
Created June 21, 2013 19:47
Show Gist options
  • Save ammonkc/5833820 to your computer and use it in GitHub Desktop.
Save ammonkc/5833820 to your computer and use it in GitHub Desktop.
[ST3] Sublime Text 3 - #keybindings #cmd

Sublime Text 3 - Useful Shortcuts (Mac OS X)

ST3 Keybindings - User

command Description
⌃S Toggle Side Bar
⌥ Tab Move Forward by character

Open/GoTo

command Description
⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
⌃ ` python console
⌘⇧N new window (useful for new project)

Editing

command Description
⌘L select line (repeat select next lines)
⌘D select word (repeat select others occurrences in context for multiple editing)
⌃⇧M select content into brackets
⌘⇧↩ insert line before
⌘↩ inter line after
⌃⇧K delete line
⌘KK delete from cursor to end of line
⌘K⌫ delete from cursor to start of line
⌘⇧D duplicate line(s)
⌘J join lines
⌘KU upper case
⌘KL lower case
⌘ / comment
⌘⌥ / block comment
⌘Y redo or repeat
⌘⇧V past and ident
⌃ space autocomplete (repeat to select next suggestion)
⌃M jump to matching brackets
⌘U soft undo (movement undo)
⌘⇧U soft redo (movement redo)

Coding

command Description
⌘⌃G Edit occurrences
⌘⇧A Auto-align assignments
⌘⇧ Space Select scope
⌃M Jump to matching bracket
⌘/ Toggle comment

XML/HTML

command Description
⌘⇧A select content into tag
⌃⇧W Wrap selection in tag
⌘⌥ . close tag

Find/Replace

command Description
⌘F find
⌘⌥F replace
⌘⌥G find next occurrence of current word
⌘⌃G select all occurrences of current word for multiple editing
⌘⇧F find in files

UI

command Description
⌘⌃F Full Screen mode
⌘⌃⇧F Distraction free mode

Splits/Tabs

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

Bookmarks

command Description
⌘F2 toggle bookmark
F2 next bookmark
⇧F2 previous bookmark
⌘⇧F2 clear bookmarks

Marks

command Description
⌘K space set mark // ⌘K; for me
⌘KW delete from cursor to mark
⌘KA select from cursor to mark
⌘KG clear mark

Package Commands

MoveTab

command Description
⌥⌘⇧ → Move Tab Right
⌥⌘⇧ ← Move Tab Left

DashDoc

command Description
⌃H Open Dash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment