Sublime Text 2 Cheat Sheet

Feel free to print this off.

General

1
2
3
4
5
6
7
Ctrl + Shift + T     open last closed file

Ctrl K , Ctrl B opens/closes the file explorer

Ctrl + Shift + P command prompt

Ctrl + ` python console

Find/Replace

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Ctrl + P                    goto to anything

Ctrl + R goto symbol (i.e. classes)
(or) Ctrl + P, then type @

Ctrl + ; goto word in current file
(or) Ctrl + P, then type #

Ctrl + G goto line in current file
(or) Ctrl + P, then type :

Ctrl + H replace

Ctrl + Shift + F find in files

Ctrl + F find

Splits/Tabs

1
2
3
4
5
6
7
8
9
10
11
12
13
Alt + Shift + 1,2,…     splits the screen into multiple
views for multiple files

Alt + Shift + 5 grid (4 groups)

Alt + 1,2,3,… switch between files tabs
Wastes time clicking on a tabs

Ctrl + 1,2,3,… focus on group

Ctrl + Shift + 1,2,3,… move file to group

Ctrl + PgUp/PgDn cycles throught the open files

Editing

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Ctrl + Space           auto completion

Ctrl + L select line
(repeat select next lines)

Ctrl + D select word
(repeat for multiple editing)

Ctrl + mouse click multiplies your mark/caret

Ctrl + Shift + D duplicate line(s)

Ctrl + J join lines

Ctrl + KU upper case

Ctrl + KL lower case

Ctrl + / comment

Ctrl + Shift + / block comment

Ctrl + Shift + M select content into brackets

Ctrl + M jump to matching brackets

Alt + Shift + W wrap selection with a tag
enter tag’s name

Ctrl + U soft undo (movement undo)

Ctrl + Y redo or repeat

Ctrl + Shift + V paste and ident

Ctrl + KK delete from cursor to end of line

Ctrl + K + BKSP delete from cursor to start of line

Bookmarks

1
2
3
4
5
6
7
Ctrl + F2             toggle bookmark

F2 next bookmark

Shift + F2 previous bookmark

Ctrl + Shift + F2 clear bookmarks