Sublime Text is a popular text editor that provides a range of features to enhance the coding and text editing experience. In Sublime Text, it is quite easy to navigate, choose, edit code and manage tabs. However, It is essential to know the shortcuts of Sublime Text for getting the most out of it. This article provides a cheat sheet on Sublime Text containing a handful of keyboard shortcuts and their explanations.
Download Sublime Text Cheat Sheet
Keyboard Shortcuts of Sublime Text
Perhaps there are keyboard shortcuts for every single task that can be performed in Sublime Text. A few of these shortcuts are extremely helpful and can increase productivity. The sections below contain lists of frequently used Sublime Text shortcuts.
General
The following keyboard shortcuts can be used for general purposes in Sublime Text.
Shortcut
Description
CTRL + SHIFT + P
Open command palette
CTRL + `
Show/Hide console
CTRL + K, B
Show/Hide sidebar
CTRL + SPACE
Select autocomplete suggestion
Navigation shortcuts of Sublime Text help to move around a document of code quickly and efficiently. These types of shortcuts enable users to navigate between tabs and quickly open files.
Shortcut
Description
CTRL + P
Quick open file
CTRL + P, @
Open file, search symbol
CTRL + R
Go to symbol
CTRL + G
Go to line
CTRL + PG DOWN
Go to next tab
CTRL + PG UP
Go to previous tab
CTRL + M
Jump to closing parenthesis
Find and Replace
The find and replace shortcuts make it easier to correct errors. This also helps users to make bulk changes in the document. Frequently used shortcuts of this type are listed below:
Shortcut
Description
CTRL + F
Find text
F3
Find next
SHIFT + F3
Find previous
After selecting, ALT + F3
Replace every selection
CTRL + H
Replace
CTRL + I
Incremental search
CTRL + SHIFT + F
Find in files
CTRL + F, ALT + ENTER
Find then multi-edit
CTRL + E
Use selection for find field
CTRL + SHIFT + E
Use selection for replace field
Window Management
Window management shortcuts in Sublime Text allow users to manage and navigate between multiple open files or views efficiently. A user can easily organize the workspace and switch between different windows using the shortcuts below.
Shortcut
Description
F11
Fullscreen
SHIFT + F11
Distraction free mode
CTRL + SHIFT + N
New window
CTRL + N
New tab
ALT + TAB NUMBER
Select a tab
CTRL + W
Close tab
CTRL + SHIFT + PANE NUMBER
Move tab to pane
CTRL + PANE NUMBER
Switch to pane
CTRL + PANEL NUMBER
Move to panel
CTRL + SHIFT + Panel Number
Move the file to panel
ALT + SHIFT + 1/4
2, 3, 4 Column
ALT + SHIFT + 8/9
2 or 3 Row
ALT + SHIFT + 5
4 Grid
CTRL + K, CTRL + SHIFT + UP
Split Pane in Half
Text Manipulation
Shortcuts under this section are useful to edit or manipulate text including the changing of font size of the text. Most frequently used shortcuts of this type are listed below.
Shortcut
Description
CTRL + K, U
To uppercase
CTRL + K, L
To lowercase
CTRL + PLUS
Increase font size
CTRL + MINUS
Decrease font size
CTRL + K, K
Delete from cursor to EOL
CTRL + K, BKSP
Delete from cursor to BOL
CTRL + DEL
Delete word forwards
CTRL + BKSP
Delete word backwards
CTRL + Z
Undo
CTRL + Y
Redo or repeat
CTRL + X
Cut text
CTRL + C
Copy text
Line Manipulation
The line manipulation shortcuts are a convenient way to manipulate and rearrange lines of code or text in Sublime Text. One can duplicate, delete, move or reorganize code using the shortcuts of this type.
Shortcut
Description
CTRL + l
Select line
CTRL + SHIFT+ K
Delete line
CTRL + ]
Indent
CTRL + [
Unindent
CTRL + ENTER
Insert line after
CTRL + SHIFT+ ENTER
Insert line before
CTRL + SHIFT+ ↑
Swap line up
CTRL + SHIFT+ ↓
Swap line down
CTRL + SHIFT+ D
Duplicate line
CTRL + J
Join line
Selection
One can select and apply changes to a block of code using the selection shortcuts. These shortcuts help users to make changes and apply formatting with precision and speed.
Shortcut
Description
CTRL + D
Word
CTRL + D
Quick select next iteration
CTRL + U
Unselect next iteration
CTRL + K, D
Skip, and select the next iteration
CTRL + SHIFT + M
Parenthesis content
CTRL + SHIFT + J
Indentation content
CTRL + ALT + UP
Column selection up
CTRL + ALT + DOWN
Column selection down
CTRL + CLICK
Multi-select editing
Code Folding
To expand or collapse code sections quickly one can use the code folding shortcuts of Sublime Text. This way users can declutter the view and focus on large or complex code structures.
Shortcut
Description
CTRL + SHIFT + [
Fold selection
CTRL + SHIFT + ]
Unfold selection
CTRL + K, 1
Fold all
CTRL + K, J
Unfold all
CTRL + 2/9
Fold level
Comment
One can add or remove comments within code using the following shortcuts.
Shortcut
Description
CTRL + /
Comment line
CTRL + SHIFT + /
Block comment
Bookmarks
In Sublime Text, the following shortcuts are super helpful to create bookmarks and quickly jump between bookmarked locations.
Shortcut
Description
CTRL F2
Toggle bookmark
F2
Next bookmark
SHIFT F2
Previous bookmark
CTRL SHIFT F2
Clear bookmarks
Miscellaneous
Shortcut
Description
F6
Toggle spell checking
CTRL + F6
Find next misspelling
CTRL + SHIFT + F6
Find the previous misspelling
Alt + V, then W
Toggle word wrap – View – Word wrap
Conclusion
In conclusion, the Sublime Text cheat sheet covers a wide variety of shortcuts. It accelerates coding tasks in Sublime Text. By utilizing this resource, users can optimize their workflow, improve their productivity and unlock the full potential of Sublime Text as a powerful code editor.