Show Menu
Cheatography

Sublime Text 3 (OSX) Cheat Sheet by

Sublime Text 3 (OSX)

General

⌘ + ⇧ + P
Command Palette
⌘ + P
Goto Anything
⌘ + R
Goto Symbol
⌘ + N
New File
⌘ + S
Save File
⌘ + ⇧ + S
Save File As
⌘ + ⌥ + S
Save All
⌘ + O
Open File
⌘ + W
Close File
⌘ + ⇧ + T
Reopen Closed File
⌘ + ⇧ + N
New Window
⌘ + ⇧ + W
Close Window
⌘ + K, ⌘ + B
Show Sidebar
⌃ + `
Show Console
⌘ + ⌃ + F
Enter Full Screen
⌘ + ⌃ + ⇧ + F
Enter Distra­ction Free Mode

Moving / Editing

⌘ + Z
Undo
⌘ + ⇧ + Z
Redo
⌘ + Y
Repeat
⌘ + C
Copy
⌘ + Y
Yank (inserts the text that’s on top of the kill ring)
⌘ + X
Cut
⌘ + V
Paste
⌘ + ⇧ + V
Paste and Indent
⌘ + ]
Indent
⌘ + [
Unindent
⌘ + ⌃ + ↑/↓
Swap Line Up/Down
⌘ + ⇧ + D
Duplicate Line
⌃ + ⇧ + K
Delete (kill) Line
⌘ + J
Join Lines
⌘ + /
Toggle Comment
⌘ + ⌥ + /
Toggle Block Comment
⌘ + ⇧ + ↩
Insert Line Before
⌘ + ↩
Insert Line After
⌘ + ⌫
Delete to Beginning of Line
⌃ + K
Delete to End of Line
⌃ + A
Move to Beginning of Line
⌃ + E
Move to End of Line
⌃ + P
(Previous) Move Up
⌃ + F
(Forward) Move Right
⌃ + N
(Next) Move Down
⌃ + B
(Back) Move Left
⌃ + T
Transpose (swap two characters or words; buggy behaviour)
⌘ + ⌥ + .
Close Tag
⌃ + ⇧ + W
Wrap Selection with Tag
⌘ + K, ⌘ + U
Convert Selected Text to Uppercase
⌘ + K, ⌘ + L
Convert Selected Text to Lowercase
⌘ + ⌥ + Q
Wrap Paragraph at Ruler
F5
Sort Lines
⌃ + F5
Sort Lines (Case Sensitive)
⌃ + G
Goto Line
⌃ + M
Jump to Matching Brackets (does not work with HTML/XML tags)
⌃ + L
Scroll to Selection (centers the screen to cursor)
⌃ + ⌥ + ↑/↓
Scroll Line Up/Down
⌃ + Q
Record Macro
⌃ + ⇧ + Q
Playback Macro
 

Selection

⌘ + U
Undo
⌘ + ⇧ + U
Soft Undo
⌘ + ⇧ + L
Split Selection Into Lines (inserts multiple cursors)
⌃ + ⇧ + ↑/↓
Add Previo­us/Next Line (inserts multiple cursors)
Single Selection (when there are multiple select­ions; exits to visual mode first if you are in insert mode)
⌘ + A
Select All
⌘ + D
Expand Selection to Word
⌘ + L
Expand Selection to Line
⌘ + ⇧ + A
Expand Selection to Tag (HTML/XML)
⌘ + ⇧ + Space
Expand Selection to Scope
⌃ + ⇧ + M
Expand Selection to Brackets
⌘ + ⇧ + J
Expand Selection to Indent­ation

Search / Replace

⌘ + F
Find
⌘ + G
Find Next
⌘ + ⇧ + G
Find Previous
⌘ + I
Increm­ental Find
⌘ + ⌥ + F
Replace
⌘ + ⌥ + E
Replace Next
⌘ + ⌥ + G
Quick Find (searches for the word under the cursor)
⌘ + ⌃ + G
Quick Find All (selects all occurences of the word under the cursor)
⌘ + E
Use Selection for Find
⌘ + ⇧ + E
Use Selection for Replace
⌘ + ⇧ + F
Find in Files (all open files)
F4
Next Result (file search results)
⇧ + F4
Previous Result (file search results)

Folding

⌘ + ⌥ + [
Fold (selec­tion)
⌘ + ⌥ + ]
Unfold
⌘ + K, ⌘ + J
Unfold All
⌘ + K, ⌘ + 1
Fold All
⌘ + K, ⌘ + 2-9
Fold Level 2-9
⌘ + K, ⌘ + T
Fold Tag Attributes (HTML/XML)

Bookma­rking

⌘ + K, ⌘ + Space
Set Mark
⌘ + K, ⌘ + A
Select to Mark
⌘ + K, ⌘ + W
Delete to Mark
⌘ + K, ⌘ + X
Swap with Mark
⌘ + K, ⌘ + G
Clear to Mark
⌘ + F2
Toggle Bookmark
F2
Nex Bookmark
⇧ + F2
Previous Bookmark
⌘ + ⇧ + F2
Clear Bookmarks
 

Miscel­laneous

F6
Tobble Spell Check
⌃ + F6
Next Misspe­lling
⌃ + ⇧ + F6
Previous Misspe­lling
⌘ + B
Build
⌃ + Space
Show Comple­tions
⌘ + ⌥ + T
Special Characters

Vintage Mode

.
Repeat
d, count (optio­nal), motion­/dd/D
Delete motion (e.g. a word) or delete line or delete line to end
c , count (optio­nal), motion / C
Change motion or change until end of line (enters insert mode)
y , count (optio­nal), motion / yy
Yank motion or yank (copy) Line
p/P
Paste yanked­/de­leted text after/­before the cursor
0/$
Move to the beginn­ing/end of a line
g
Most of g’s power is not implem­ented in Vintage Mode. You can use the basic combin­ations gg and G to move to the top/bottom of the file. number, gg to move to that line. ga to display character encoding in the status bar.
a/A
Append to cursor­/line (enters insert mode)
i/I
Insert before cursor­/line (enters insert mode)
w/W
Move forward a Word/WORD (WORDs are whites­pac­e-s­epa­rated words)
b/B
Move backwards a Word/WORD
e/E
Move to the end of a Word/WORD
f, charac­ter/F, character
Find (chara­cter) forwar­d/b­ack­wards on the current line
r, character
Replace character under cursor
t/T
’till (forwa­rd/­bac­kward) Used in combin­ation with motions like c or d. For example, d, t, { deletes everything until the next { character (on the current line).
o/O
Open line below/­above (enters insert mode)
{/}
Move to the beginn­ing/end of a paragraph
s/S or cc
Substitute charac­ter­/line (enters insert mode)
H(igh)­/M(­id)­/L(ow)
Move cursor to the top/mi­ddl­e/b­ottom of the screen
J
Join Lines
ZZ
CloseFile
x
Delete character under cursor
X
Backspace
v/V
Enters Visual Mode/V­isual Line Mode
n/N
Find next/p­revious occurence of search
>, >/<, <
Indent­/Un­indent
~
SwapCase
q, charac­ter/@, character
Record­/play macro
               
 

Comments

Awesome! Thank you!

'Tobble Spell Check' - that must be sarcasm :)

please,
can you make this same sheet for Windows?

Missing GOTO DEFINITION - ALT + CMD + DOWN_ARROW

Great! thanks

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Sublime Text 2 - Shortcuts (Verbose Mac) Keyboard Shortcuts