Select & Expand

ShortcutDescription
⌘ Dselect current word (repeat to include next instance of word)
⌘ Lselect current line (repeat to include next line)
⌘ ⇧ Lsplit selection into multiple lines
⌘ ⇧ Aselect text inside tag (repeat to expand)
Ctrl ⇧ Mselect to curly or angle brackets (repeat to expand)

Replace ⌘ with Ctrl on Windows and Linux.

Code Folding

ShortcutDescription
⌘ Alt [fold closest block
⌘ Alt ]unfold closest block
⌘ K ⌘ 1fold all first level code blocks
⌘ K ⌘ 2fold all second level code blocks
⌘ K ⌘ 3 (etc)fold all third level code blocks (etc)
⌘ K ⌘ Tfold all HTML attributes
⌘ K ⌘ 0unfold everything

Editing

ShortcutDescription
⌘ ⇧ Dduplicate current line/selection
⌘ ⇧ Kdelete current line/selection
⇧ deldelete current line/selection
⌘ ⇧ ↑move line up
⌘ ⇧ ↓move line down

Goto

ShortcutDescription
⌘ Pgoto anything
⌘ Ggoto line number
⌘ Rgoto symbol
⌘ P, :goto line number (enter number after :)
⌘ P, #goto and list fuzzy-matches of string (enter characters after #)
⌘ P, @goto and list symbol (begin typing symbol name after @)

Command line

$ subl .
$ subl README.md

Use subl to open files in Sublime from the terminal.

0 Comments for this cheatsheet. Write yours!