You are on page 1of 3

Sublime Text 3 (OSX) Cheat Sheet

by martinprins via cheatography.com/16052/cs/1617/

General

Moving / Editing (cont)

Moving / Editing (cont)

Command Palette

+L

+P

Goto Anything

+K

+R

Goto Symbol

+J

+N

New File

+S

Save File

++S

Save File As

++S

Save All

+O

Open File

+W

Close File

++T

Reopen Closed File

++P

Delete (kill) Line

Scroll to Selection (centers the


screen to cursor)

Join Lines

++

+/

Toggle Comment

Toggle Block Comment

+Q

Record Macro

+/

++

Playback Macro

Insert Line Before

Scroll Line Up/Down

+
+

Insert Line After

Delete to Beginning of Line

Selection
+U

Undo

Soft Undo

++N

New Window

+K

Delete to End of Line

+U

++W

Close Window

+A

Move to Beginning of Line

Split Selection Into Lines (inserts

+L

multiple cursors)

Add Previous/Next Line (inserts

+ /

multiple cursors)

Single Selection (when there are

+ K, + B

Show Sidebar

+E

Move to End of Line

+`

Show Console

+P

(Previous) Move Up

++F

Enter Full Screen

+F

(Forward) Move Right

+++F

Enter Distraction Free Mode

+N

(Next) Move Down

multiple selections; exits to visual

+B

(Back) Move Left

mode first if you are in insert mode)

+T

Transpose (swap two characters or

+A

Select All

words; buggy behaviour)

+D

Expand Selection to Word

Close Tag

+L

Expand Selection to Line

Expand Selection to Tag (HTML/XML)

Moving / Editing
+Z

Undo

++

Redo

+.

+Y

Repeat

+C

Copy

+Y

+X

Yank (inserts the text thats on top

+ K,
+U

Cut

+ K,

Paste

++

Paste and Indent

V
+]

Indent

+[

Unindent

++

Swap Line Up/Down

/
Duplicate Line

Wrap Selection with Tag

+W

of the kill ring)

+V

++

+
Convert Selected Text to Uppercase

Expand Selection to Scope

+
Space

Convert Selected Text to Lowercase

+L
+

+A

Expand Selection to Brackets

+M
Wrap Paragraph at Ruler

+Q

Expand Selection to Indentation

+J

F5

Sort Lines

Sort Lines (Case Sensitive)

F5
+G

Goto Line

+M

Jump to Matching Brackets (does not


work with HTML/XML tags)

By martinprins

Published 3rd January, 2014.

Sponsored by Readability-Score.com

cheatography.com/martinprins/

Last updated 1st June, 2014.

Measure your website readability!

Page 1 of 3.

https://readability-score.com

Sublime Text 3 (OSX) Cheat Sheet


by martinprins via cheatography.com/16052/cs/1617/

Search / Replace

Bookmarking

+ K, + Space

Set Mark

+ K, + A

Select to Mark

+ K, + W

Delete to Mark

+ K, + X

Swap with Mark

the file. number, gg to move to that

+ K, + G

Clear to Mark

line. ga to display character

+ F2

Toggle Bookmark

Find

F
+

Find Next

G
+

Find Previous

+
G

Vintage Mode (cont)

+I

Incremental Find

F2

Nex Bookmark

Replace

+ F2

Previous Bookmark

+ + F2

Clear Bookmarks

+
F
+

Replace Next

+
E
+

Quick Find (searches for the word

under the cursor)

G
+

Quick Find All (selects all occurences

of the word under the cursor)

G
+

Use Selection for Find

implemented in Vintage Mode. You


can use the basic combinations gg
and G to move to the top/bottom of

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

Miscellaneous

Most of gs power is not

Move forward a Word/WORD


(WORDs are whitespaceseparated words)

F6

Tobble Spell Check

+ F6

Next Misspelling

b/B

Move backwards a Word/WORD

+ + F6

Previous Misspelling

e/E

Move to the end of a Word/WORD

+B

Build

f,

Find (character)

character

forward/backwards on the current

/F,

line

+ Space

Show Completions

++T

Special Characters

character
r,

Vintage Mode

Replace character under cursor

character

Repeat

d, count

Delete motion (e.g. a word) or

(optional),

delete line or delete line to

d. For example, d, t, { deletes

motion/dd/D

end

everything until the next { character

c , count

Change motion or change

(optional),

until end of line (enters insert

motion / C

mode)

y , count

Yank motion or yank (copy)

(optional),

Line

Use Selection for Replace

Find in Files (all open files)

F4

Next Result (file search results)

Previous Result (file search results)

F4

t/T

till (forward/backward) Used in


combination with motions like c or

(on the current line).

motion / yy
p/P

Folding

Paste yanked/deleted text


after/before the cursor

++[

Fold (selection)

++]

Unfold

+ K, + J

Unfold All

+ K, + 1

Fold All

+ K, +

Fold Level 2-9

0/$

Move to the beginning/end of


a line

2-9
+ K, + T

Fold Tag Attributes


(HTML/XML)

By martinprins

Published 3rd January, 2014.

Sponsored by Readability-Score.com

cheatography.com/martinprins/

Last updated 1st June, 2014.

Measure your website readability!

Page 2 of 3.

https://readability-score.com

Sublime Text 3 (OSX) Cheat Sheet


by martinprins via cheatography.com/16052/cs/1617/

Vintage Mode (cont)


o/O

Open line below/above (enters insert


mode)

{/}

Move to the beginning/end of a


paragraph

s/S or cc

Substitute character/line (enters insert


mode)

H(igh)/M(id)/L(ow)

Move cursor to the top/middle/bottom of


the screen

Join Lines

ZZ

CloseFile

Delete character under cursor

Backspace

v/V

Enters Visual Mode/Visual Line Mode

n/N

Find next/previous occurence of search

>, >/<, <

Indent/Unindent

SwapCase

q, character/@,

Record/play macro

character

By martinprins

Published 3rd January, 2014.

Sponsored by Readability-Score.com

cheatography.com/martinprins/

Last updated 1st June, 2014.

Measure your website readability!

Page 3 of 3.

https://readability-score.com

You might also like