Skip to content

Instantly share code, notes, and snippets.

@TuxToaster
Last active December 16, 2015 02:58
Show Gist options
  • Save TuxToaster/5365976 to your computer and use it in GitHub Desktop.
Save TuxToaster/5365976 to your computer and use it in GitHub Desktop.

Useful Shortcuts

Sublime Text 2 - (Mac OS X)

Modifier keys used

Symbol Key Name
Command
Control
Alt
Shift

General

Key Description
⌘P go to anything
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘K,⌘B toggle side bar
⌘⇧P command palette
⌃ ` python console
⌘⇧N new window (useful for new project)

Editing

Key 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
⌘K,⌘K delete from cursor to end of line
⌘K,⌘⌫ delete from cursor to start of line
⌘⇧D duplicate line(s)
⌘J join lines
⌘K,⌘U upper case
⌘K,⌘L lower case
⌘ / comment
⌘⌥ / block comment
⌘Y redo or repeat
⌘⇧V past and indent
⌃ space auto-complete (repeat to select next suggestion)
⌃M jump to matching brackets
⌘U soft undo (movement undo)
⌘⇧U soft redo (movement redo)

XML/HTML

Key Description
⌘⇧A select content into tag
⌘⌥ . close tag

Find/Replace

Key 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

Splits/Tabs

Key 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

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

Marks

Key Description
⌘K space set mark
⌘K,⌘W delete from cursor to mark
⌘K,⌘A select from cursor to mark
⌘K,⌘G clear mark

Useful Shortcuts

Sublime Text 2 - (Windows/Linux)

Modifier keys used

Symbol Key Name
Control
Alt
Shift

General

Key Description
^P go to anything
⌃⌥P go to project
^R go to methods
⌃G go to line
^K,^B toggle side bar
^⇧P command palette
⌃ ` python console
^⇧N new window (useful for new project)

Editing

Key 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
^K,^K delete from cursor to end of line
^K,^⌫ delete from cursor to start of line
^⇧D duplicate line(s)
^J join lines
^K,^U upper case
^K,^L lower case
^ / comment
^⌥ / block comment
^Y redo or repeat
^⇧V past and indent
⌃ space auto-complete (repeat to select next suggestion)
⌃M jump to matching brackets
^U soft undo (movement undo)
^⇧U soft redo (movement redo)

XML/HTML

Key Description
^⇧A select content into tag
⌥ . close tag

Find/Replace

Key Description
^F find
^H replace
F3 find next occurrence of current word
⌥ F3 select all occurrences of current word for multiple editing
^⇧F find in files

Splits/Tabs

Key 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

Key Description
^F2 toggle bookmark
F2 next bookmark
⇧F2 previous bookmark
^⇧F2 clear bookmarks

Marks

Key Description
^K space set mark
^K,^W delete from cursor to mark
^K,^A select from cursor to mark
^K,^G clear mark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment