Show Menu

Sublime Text 3 (OSX) Cheat Sheet by martinprins

Sublime Text 3 (OSX)

General

⌘ + ⇧ + PCommand Palette
⌘ + PGoto Anything
⌘ + RGoto Symbol
⌘ + NNew File
⌘ + SSave File
⌘ + ⇧ + SSave File As
⌘ + ⌥ + SSave All
⌘ + OOpen File
⌘ + WClose File
⌘ + ⇧ + TReopen Closed File
⌘ + ⇧ + NNew Window
⌘ + ⇧ + WClose Window
⌘ + K, ⌘ + BShow Sidebar
⌃ + `Show Console
⌘ + ⌃ + FEnter Full Screen
⌘ + ⌃ + ⇧ + FEnter Distra­ction Free Mode

Moving / Editing

⌘ + ZUndo
⌘ + ⇧ + ZRedo
⌘ + YRepeat
⌘ + CCopy
⌘ + YYank (inserts the text that’s on top of the kill ring)
⌘ + XCut
⌘ + VPaste
⌘ + ⇧ + VPaste and Indent
⌘ + ]Indent
⌘ + [Unindent
⌘ + ⌃ + ↑/↓Swap Line Up/Down
⌘ + ⇧ + DDuplicate Line
⌃ + ⇧ + KDelete (kill) Line
⌘ + JJoin Lines
⌘ + /Toggle Comment
⌘ + ⌥ + /Toggle Block Comment
⌘ + ⇧ + ↩Insert Line Before
⌘ + ↩Insert Line After
⌘ + ⌫Delete to Beginning of Line
⌃ + KDelete to End of Line
⌃ + AMove to Beginning of Line
⌃ + EMove to End of Line
⌃ + P(Previous) Move Up
⌃ + F(Forward) Move Right
⌃ + N(Next) Move Down
⌃ + B(Back) Move Left
⌃ + TTranspose (swap two characters or words; buggy behaviour)
⌘ + ⌥ + .Close Tag
⌃ + ⇧ + WWrap Selection with Tag
⌘ + K, ⌘ + UConvert Selected Text to Uppercase
⌘ + K, ⌘ + LConvert Selected Text to Lowercase
⌘ + ⌥ + QWrap Paragraph at Ruler
F5Sort Lines
⌃ + F5Sort Lines (Case Sensitive)
⌃ + GGoto Line
⌃ + MJump to Matching Brackets (does not work with HTML/XML tags)
⌃ + LScroll to Selection (centers the screen to cursor)
⌃ + ⌥ + ↑/↓Scroll Line Up/Down
⌃ + QRecord Macro
⌃ + ⇧ + QPlayback Macro
 

Selection

⌘ + UUndo
⌘ + ⇧ + USoft Undo
⌘ + ⇧ + LSplit 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)
⌘ + ASelect All
⌘ + DExpand Selection to Word
⌘ + LExpand Selection to Line
⌘ + ⇧ + AExpand Selection to Tag (HTML/XML)
⌘ + ⇧ + SpaceExpand Selection to Scope
⌃ + ⇧ + MExpand Selection to Brackets
⌘ + ⇧ + JExpand Selection to Indent­ation

Search / Replace

⌘ + FFind
⌘ + GFind Next
⌘ + ⇧ + GFind Previous
⌘ + IIncrem­ental Find
⌘ + ⌥ + FReplace
⌘ + ⌥ + EReplace Next
⌘ + ⌥ + GQuick Find (searches for the word under the cursor)
⌘ + ⌃ + GQuick Find All (selects all occurences of the word under the cursor)
⌘ + EUse Selection for Find
⌘ + ⇧ + EUse Selection for Replace
⌘ + ⇧ + FFind in Files (all open files)
F4Next Result (file search results)
⇧ + F4Previous Result (file search results)

Folding

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

Bookma­rking

⌘ + K, ⌘ + SpaceSet Mark
⌘ + K, ⌘ + ASelect to Mark
⌘ + K, ⌘ + WDelete to Mark
⌘ + K, ⌘ + XSwap with Mark
⌘ + K, ⌘ + GClear to Mark
⌘ + F2Toggle Bookmark
F2Nex Bookmark
⇧ + F2Previous Bookmark
⌘ + ⇧ + F2Clear Bookmarks
 

Miscel­laneous

F6Tobble Spell Check
⌃ + F6Next Misspe­lling
⌃ + ⇧ + F6Previous Misspe­lling
⌘ + BBuild
⌃ + SpaceShow Comple­tions
⌘ + ⌥ + TSpecial Characters

Vintage Mode

.Repeat
d, count (optio­nal), motion­/dd/DDelete motion (e.g. a word) or delete line or delete line to end
c , count (optio­nal), motion / CChange motion or change until end of line (enters insert mode)
y , count (optio­nal), motion / yyYank motion or yank (copy) Line
p/PPaste yanked­/de­leted text after/­before the cursor
0/$Move to the beginn­ing/end of a line
gMost 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/AAppend to cursor­/line (enters insert mode)
i/IInsert before cursor­/line (enters insert mode)
w/WMove forward a Word/WORD (WORDs are whites­pac­e-s­epa­rated words)
b/BMove backwards a Word/WORD
e/EMove to the end of a Word/WORD
f, charac­ter/F, characterFind (chara­cter) forwar­d/b­ack­wards on the current line
r, characterReplace 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/OOpen line below/­above (enters insert mode)
{/}Move to the beginn­ing/end of a paragraph
s/S or ccSubstitute 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
JJoin Lines
ZZCloseFile
xDelete character under cursor
XBackspace
v/VEnters Visual Mode/V­isual Line Mode
n/NFind next/p­revious occurence of search
>, >/<, <Indent­/Un­indent
~SwapCase
q, charac­ter/@, characterRecord­/play macro
 

Share This Cheat Sheet!

Favourited by 8 Members:

ineedmyherbs musaid soilboy Kronuz Domenic raejin caroline.artz eddiejessup

Comments

caroline.artz caroline.artz, 00:37 14 Jan 14

Awesome! Thank you!

mikemwalsh mikemwalsh, 14:51 10 Mar 14

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

felipe felipe, 12:21 21 May 14

please,
can you make this same sheet for Windows?

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.