Skip to content

Instantly share code, notes, and snippets.

@svilenkov
Forked from lucasfais/gist:1207002
Last active December 16, 2015 14:59
Show Gist options
  • Save svilenkov/5452582 to your computer and use it in GitHub Desktop.
Save svilenkov/5452582 to your computer and use it in GitHub Desktop.
Sublime Text 2 - Default shortcuts cheatsheet (PC keyboard)
-----------------
General
-----------------
* Go to file (CTRL + P)
* Go to project (CTRL + ALT + P)
* Go to methods (CTRL + R)
* Go to line (CTRL + G)
* Toggle side bar (CTRL + KB)
* Command prompt (CTRL + SHIFT + P)
* Console (CTRL + `)
* New window (CTRL + SHIFT + N)
------------------
Editing
------------------
* Select line (CTRL + L) # repeat for next line
* Select word (CTRL + D) # repeat for next occurence and multiple editing
* Wrap in brackets (CTRL + SHIFT + M)
* Insert line before (CTRL + SHIFT + ENTER)
* Insert line after (CTRL + ENTER)
* Delete line (CTRL + SHIFT + K)
* Delete to line end (CTRL + KK)
* Delete to line start (CTRL + SHIFT + K)
* Duplicate line(s) (CTRL + SHIFT + D)
* Join lines (CTRL + J)
* Upper case (CTRL + KU)
* Lower case (CTRL + LK)
* Comment (CTRL + /)
* Block comment (CTRL + SHIFT + /)
* Redo or repeat (CTRL + Y)
* Past and ident (CTRL + SHIFT + V)
* Autocomplete (CTRL + SPACE)
* Go to matching brackets (CTRL + M)
* Soft undo (CTRL + U)
* Soft redo (CTRL + SHIFT + U)
------------------
XML/HTML
------------------
* Select wraping tag (CTRL + SHIFT + A)
* Close tag (CTRL + SHIFT + .)
------------------
Find/Replace
------------------
* Find (CTRL + F)
* Replace (CTRL + H)
* Find next (F3)
* Edit all occurencies (ALT + F3)
* Find in files (CTRL + SHIFT + F)
-----------------
Splits/Tabs
-----------------
* Single column (CTRL + SHIFT + 1
* Two columns (CTRL + SHIFT + 2
* Grid (4 groups) (CTRL + SHIFT + 5
* Focus group (CTRL + [1..4])
* Move file to group (CTRL + SHIFT + [1..4])
* Select Tab (CTRL + [1..n])
-----------------
Bookmarks
-----------------
* Toggle bookmark (CTRL + F2)
* Next bookmark (F2)
* Previous bookmark (SHIFT + F2)
* Clear bookmarks (CTRL + SHIFT + F2)
-----------------
Marks
-----------------
* Space set mark (CTRL + K + SPACE)
* Delete from cursor to mark (CTRL + KW)
* Select from cursor to mark (CTRL + KA)
* Clear mark (CTRL + KG)
LEGEND
------
[1..4] - From 1 to 4 (1,2,3,4)
[1..n] - From 1 to variable number. For example depends on the amount of tabs you have etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment