Catalog / Sublime Text Cheatsheet
Sublime Text Cheatsheet
A comprehensive cheat sheet for Sublime Text, covering essential shortcuts, commands, and features to boost your coding efficiency.
Selection & Navigation
Basic Selection
|
Select current word (repeat to include next instance of word). |
|
Select current line (repeat to include next line). |
|
Split selection into multiple lines. |
|
Select all text in the current file. |
|
Select the current scope (inside brackets, parentheses, etc.). |
|
Select all occurrences of the current selection. |
Advanced Selection
|
Select text inside tag (repeat to expand). |
|
Select to curly or angle brackets (repeat to expand). |
|
Toggle the sidebar visibility. |
|
Multi-select: Add another caret for multiple selections. |
|
Column selection: Select text in a column. |
|
Extend selection to the line above/below. |
Navigation
|
Go to anything. |
|
Go to line number. |
|
Go to symbol. |
|
Show Command Palette: Access all Sublime Text commands. |
|
Go to file (fuzzy search). |
|
Close current tag (HTML/XML). |
Editing & Code Folding
Basic Editing
|
Duplicate current line/selection. |
|
Delete current line/selection. |
|
Delete current line/selection. |
|
Move line up. |
|
Move line down. |
|
Join lines. |
Advanced Editing
|
Toggle comment on current line/selection. |
|
Paste and indent. |
|
Convert selection to uppercase. |
|
Convert selection to lowercase. |
|
Autocompletion. |
|
Paste from history. |
Code Folding
|
Fold closest block. |
|
Unfold closest block. |
|
Fold all first level code blocks. |
|
Fold all second level code blocks. |
|
Fold all third level code blocks (etc). |
|
Unfold everything. |
Find & Replace
Find
|
Find. |
|
Find in files. |
|
Find next. |
|
Find previous. |
|
Use selection for find. |
|
Incremental find: Find as you type. |
Replace
|
Replace. |
|
Replace in files. |
|
Select all matches for replacement. |
|
Use selection for replace. |
|
Replace all. |
|
Edit the next find/replace. |
Find Options
Case Sensitive: Match only if the case matches. |
Whole Word: Match only entire words. |
Wrap: Continue searching from the beginning of the file. |
In Selection: Limit search to the current selection. |
Highlight Matches: Highlight all matching occurrences. |
Regular Expression: Use regular expressions for more complex searches. |
View & Command Line
View
|
New window. |
|
Close current tab. |
|
Reopen last closed tab. |
|
Switch project. |
|
Switch tabs. |
|
Close window. |
Command Line Usage
|
|
|
|
|
|
Settings and Preferences
Preferences > Settings - User: Customize Sublime Text settings. |
Preferences > Package Settings: Configure installed packages. |
Preferences > Key Bindings - User: Customize key bindings. |
Preferences > Color Scheme: Change the color scheme. |
View > Syntax: Change the syntax highlighting. |
View > Layout: Change the layout of the editor (single, columns, grid). |