Skip to content

Instantly share code, notes, and snippets.

@belucid
Forked from axelav/gist:1839777
Created April 19, 2012 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save belucid/2419995 to your computer and use it in GitHub Desktop.
Save belucid/2419995 to your computer and use it in GitHub Desktop.
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Shortcuts (Mac OS X)

Keys

control
alt
command
shift
enter

General

⌘⇧P command palette
⌃ ` console
⌘⇧N new window
⌘⌃⇧F distraction free editing mode

Navigation

⌘P go to file
⌘P : go to line number
⌘R go to method

Find / Replace

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

Editing

⌘⇧A align variable declarations (alignment package)
⌘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)

XML / HTML

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

Splits/Tabs

⌘⌥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

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

Marks

⌘K space set mark // ⌘K; for me
⌘KW delete from cursor to mark
⌘KA select from cursor to mark
⌘KG clear mark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment