Sublime Text Keyboard Shortcuts: Complete List for Windows, Mac & Linux (2026)
QUICK ANSWER
The most essential Sublime Text shortcuts are:
- Ctrl + P – Goto Anything (open any file instantly)
- Ctrl + Shift + P – Command Palette (run any editor command)
- Ctrl + D – Select next occurrence (multi-cursor editing)
- Ctrl + / – Toggle line comment
- Ctrl + G – Go to line number
On Mac, replace Ctrl with ⌘ Command. On Linux, shortcuts are identical to Windows.
Sublime Text is one of the most popular code editors among developers worldwide and its keyboard shortcuts are a big
reason why. Instead of reaching for the mouse, experienced Sublime users navigate files, edit multiple lines at once, and run build commands entirely from the keyboard.
This guide covers every Sublime Text keyboard shortcut for Windows, Mac, and Linux from basic file operations to advanced multi-cursor editing and the Command Palette. Whether you’re a beginner just getting started or a developer looking to level up your workflow, you’ll find exactly what you need here.
You can also download the free Sublime Text shortcuts cheat sheet PDF at the bottom of this page.
Most used Sublime Text Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| New Window | Ctrl + Shift + N | ⌘ + Shift + N |
| Close Window | Ctrl + Shift + W | ⌘ + Shift + W |
| Open File | Ctrl + O | ⌘ + O |
| Reopen Last File | Ctrl + Shift + T | ⌘ + Shift + T |
| New File | Ctrl + N | ⌘ + N |
| Save File | Ctrl + S | ⌘ + S |
| Save File As | Ctrl + Shift + S | ⌘ + Shift + S |
| Close File | Ctrl + F4 | ⌘ + F4 |
| Close Sublime | Ctrl + W | ⌘ + W |
| Undo | Ctrl + Z | ⌘ + Z |
| Redo | Ctrl + Shift + Z | ⌘ + Shift + Z |
| Repeat Last Action | Ctrl + Y | ⌘ + Y |
| Soft Undo | Ctrl + U | ⌘ + U |
| Soft Redo | Ctrl + Shift + U | ⌘ + Shift + U |
| Cut | Ctrl + X | ⌘ + X |
| Copy | Ctrl + C | ⌘ + C |
| Paste | Ctrl + V | ⌘ + V |
| Paste & Match Indentation | Ctrl + Shift + V | ⌘ + Shift + V |
GoTo Anything and Navigation Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Goto Anything (open any file) | Ctrl + P | ⌘ + P |
| Goto Symbol in file | Ctrl + R | ⌘ + R |
| Goto Symbol in project | Ctrl + Shift + R | ⌘ + Shift + R |
| Goto Word in file | Ctrl + ; | ⌘ + ; |
| Goto Line Number | Ctrl + G | ⌘ + G |
| Move one word left | Ctrl + Left | ⌘ + Left |
| Move one word right | Ctrl + Right | ⌘ + Right |
| Move one sub-word left | Alt + Left | Option + Left |
| Move one sub-word right | Alt + Right | Option + Right |
| Move one page up | Page Up | Page Up |
| Move one page down | Page Down | Page Down |
| Move to beginning of line | Home | Home |
| Move to end of line | End | End |
| Scroll up without moving cursor | Ctrl + Up | ⌘ + Up |
| Scroll down without moving cursor | Ctrl + Down | ⌘ + Down |
| Jump to matching bracket | Ctrl + M | ⌘ + M |
| Jump forward in history | Alt + – | Option + – |
| Jump backward in history | Alt + + | Option + + |
Command Palette & Sidebar Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Open Command Palette | Ctrl + Shift + P | ⌘ + Shift + P |
| Toggle Sidebar | Ctrl + K, Ctrl + B | ⌘ + K, ⌘ + B |
| Show Scope in Status Bar | Ctrl + Shift + Alt + P | ⌘ + Shift + Alt + P |
| Open Python Console | Ctrl + ` | ⌘ + ` |
| Toggle Distraction Free Mode | Shift + F11 | Shift + F11 |
| Toggle Full Screen | F11 | ⌘ + Ctrl + F |
Multi-Cursor & Column Editing Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Select next occurrence of word | Ctrl + D | ⌘ + D |
| Select all occurrences of word | Alt + F3 | ⌘ + Ctrl + G |
| Skip next occurrence | Ctrl + K, Ctrl + D | ⌘ + K, ⌘ + D |
| Add cursor above (column select) | Ctrl + Alt + Up | ⌘ + Alt + Up |
| Add cursor below (column select) | Ctrl + Alt + Down | ⌘ + Alt + Down |
| Split selection into lines | Ctrl + Shift + L | ⌘ + Shift + L |
| Select lines in same indentation | Ctrl + Shift + J | ⌘ + Shift + J |
Selection Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Select All | Ctrl + A | ⌘ + A |
| Select Line | Ctrl + L | ⌘ + L |
| Expand Selection to Brackets | Ctrl + Shift + M | ⌘ + Shift + M |
| Expand Selection to Scope | Ctrl + Shift + Space | ⌘ + Shift + Space |
| Extend selection one character left | Shift + Left | Shift + Left |
| Extend selection one character right | Shift + Right | Shift + Right |
| Extend selection one word left | Ctrl + Shift + Left | ⌘ + Shift + Left |
| Extend selection one word right | Ctrl + Shift + Right | ⌘ + Shift + Right |
| Extend selection one line up | Shift + Up | Shift + Up |
| Extend selection one line down | Shift + Down | Shift + Down |
| Extend selection one page up | Shift + Page Up | Shift + Page Up |
| Extend selection one page down | Shift + Page Down | Shift + Page Down |
| Extend to beginning of line | Shift + Home | Shift + Home |
| Extend to end of line | Shift + End | Shift + End |
| Extend to beginning of file | Ctrl + Shift + Home | ⌘ + Shift + Home |
| Extend to end of file | Ctrl + Shift + End | ⌘ + Shift + End |
Find and Replace Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Find | Ctrl + F | ⌘ + F |
| Find and Replace | Ctrl + H | ⌘ + H |
| Find in Files (all open tabs) | Ctrl + Shift + F | ⌘ + Shift + F |
| Replace Next | Ctrl + Shift + H | ⌘ + Shift + H |
| Find Next | F3 | F3 |
| Find Previous | Shift + F3 | Shift + F3 |
| Find and highlight current word | Ctrl + D | ⌘ + D |
| Find Under | Ctrl + F3 | ⌘ + F3 |
| Find Under Previous | Ctrl + Shift + F3 | ⌘ + Shift + F3 |
| Find All Under | Alt + F3 | Option + F3 |
| Slurp Find String | Ctrl + E | ⌘ + E |
| Slurp Replace String | Ctrl + Shift + E | ⌘ + Shift + E |
Text Manipulation Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Delete Line | Ctrl + Shift + K | ⌘ + Shift + K |
| Duplicate Line or Selection | Ctrl + Shift + D | ⌘ + Shift + D |
| Move Line Up | Ctrl + Shift + Up | ⌘ + Shift + Up |
| Move Line Down | Ctrl + Shift + Down | ⌘ + Shift + Down |
| Insert Line After | Ctrl + Enter | ⌘ + Enter |
| Insert Line Before | Ctrl + Shift + Enter | ⌘ + Shift + Enter |
| Join Line Below to Current | Ctrl + J | ⌘ + J |
| Transpose Characters | Ctrl + T | ⌘ + T |
| Indent | Ctrl + ] | ⌘ + ] |
| Unindent | Ctrl + [ | ⌘ + [ |
| Toggle Line Comment | Ctrl + / | ⌘ + / |
| Toggle Block Comment | Ctrl + Shift + / | ⌘ + Shift + / |
| Sort Lines (case sensitive) | F9 | F9 |
| Sort Lines (case insensitive) | Shift + F9 | Shift + F9 |
| Wrap Lines to 80 Characters | Alt + Q | Option + Q |
| Delete to End of Line | Ctrl + K, Ctrl + K | ⌘ + K, ⌘ + K |
| Delete to Start of Line | Ctrl + K, Ctrl + Backspace | ⌘ + K, ⌘ + Backspace |
| Delete Character Right | Delete | Delete |
| Delete Character Left | Backspace | Backspace |
| Upper Case | Ctrl + K, Ctrl + U | ⌘ + K, ⌘ + U |
| Lower Case | Ctrl + K, Ctrl + L | ⌘ + K, ⌘ + L |
Bookmarks Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Toggle Bookmark | Ctrl + F2 | ⌘ + F2 |
| Next Bookmark | F2 | F2 |
| Previous Bookmark | Shift + F2 | Shift + F2 |
| Select All Bookmarks | Alt + F2 | Option + F2 |
| Clear All Bookmarks | Ctrl + Shift + F2 | ⌘ + Shift + F2 |
Code Folding Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Fold Code | Ctrl + Shift + [ | ⌘ + Shift + [ |
| Unfold Code | Ctrl + Shift + ] | ⌘ + Shift + ] |
| Fold All | Ctrl + K, Ctrl + 1 | ⌘ + K, ⌘ + 1 |
| Unfold All | Ctrl + K, Ctrl + J | ⌘ + K, ⌘ + J |
| Fold Level 2 | Ctrl + K, Ctrl + 2 | ⌘ + K, ⌘ + 2 |
| Fold Level 3 | Ctrl + K, Ctrl + 3 | ⌘ + K, ⌘ + 3 |
Split Panes Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Single pane layout | Alt + Shift + 1 | Option + Shift + 1 |
| 2 vertical panes | Alt + Shift + 2 | Option + Shift + 2 |
| 3 vertical panes | Alt + Shift + 3 | Option + Shift + 3 |
| 4 vertical panes | Alt + Shift + 4 | Option + Shift + 4 |
| 2×2 grid layout | Alt + Shift + 5 | Option + Shift + 5 |
| 2 horizontal panes | Alt + Shift + 8 | Option + Shift + 8 |
| 3 horizontal panes | Alt + Shift + 9 | Option + Shift + 9 |
| Focus pane 1 | Ctrl + 1 | ⌘ + 1 |
| Focus pane 2 | Ctrl + 2 | ⌘ + 2 |
| Focus pane 3 | Ctrl + 3 | ⌘ + 3 |
| Focus pane 4 | Ctrl + 4 | ⌘ + 4 |
| Move file to pane 1 | Ctrl + Shift + 1 | ⌘ + Shift + 1 |
| Move file to pane 2 | Ctrl + Shift + 2 | ⌘ + Shift + 2 |
Spell Check Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Toggle Spell Check | F6 | F6 |
| Next Misspelling | Ctrl + F6 | ⌘ + F6 |
| Previous Misspelling | Ctrl + Shift + F6 | ⌘ + Shift + F6 |
Build System Shortcuts
| Action | Windows/Linux | Mac |
|---|---|---|
| Build | Ctrl + B | ⌘ + B |
| Build with options | Ctrl + Shift + B | ⌘ + Shift + B |
| Cancel Build | Ctrl + Break | ⌘ + Break |
Linux-Specific Difference Shortcuts
Most Windows shortcuts work identically on Linux. The key differences are:
| Action | Linux | Windows |
|---|---|---|
| Column select up | Alt + Shift + Up | Ctrl + Alt + Up |
| Column select down | Alt + Shift + Down | Ctrl + Alt + Down |
Everything else uses the same Ctrl-based shortcuts as Windows. read more: Best Sublime Text Alternatives & Competitors
Frequently Asked Questions About Sublime Text Shortcuts
What is the most important Sublime Text shortcut?
The single most powerful shortcut in Sublime Text is Ctrl+P (⌘+P on Mac) also called Goto Anything. It lets you instantly open any file in your project by typing just a few characters of the filename. No mouse, no folder navigation. It works across projects of any size and is the shortcut most experienced Sublime users rely on dozens of times per day.
How do I open the Command Palette in Sublime Text?
Press Ctrl+Shift+P on Windows/Linux or ⌘+Shift+P on Mac to open the Command Palette. From here you can run any editor command install packages, change syntax, convert indentation, sort lines, and hundreds more without memorizing individual shortcuts. Just type what you want to do and Sublime Text finds the command automatically.
What is the shortcut for multiple cursors in Sublime Text?
Press Ctrl+D (⌘+D on Mac) to select the next occurrence of the current word and add a cursor to it. Keep pressing to select more occurrences one by one. Press Alt+F3 (⌘+Ctrl+G on Mac) to select ALL occurrences at once. You can then type, delete, or edit all selected instances simultaneously making it one of the most powerful productivity features in Sublime Text.
How do I comment and uncomment code in Sublime Text?
Press Ctrl+/ (⌘+/ on Mac) to toggle a line comment on the current line or selected lines. For block comments, use Ctrl+Shift+/ (⌘+Shift+/ on Mac). These shortcuts work across all major programming languages Sublime Text automatically uses the correct comment syntax (// for JavaScript, # for Python, for HTML, etc.) based on the file type.
Are Sublime Text shortcuts the same in version 3 and 4?
Most shortcuts are identical between Sublime Text 3 and Sublime Text 4. Sublime Text 4, released in May 2021, did not change the core keyboard shortcut defaults. The main additions in ST4 are Tab Multi-Select (navigating multiple open tabs with the keyboard) and improved GPU rendering but none of these broke existing key bindings. All shortcuts listed in this guide work in both ST3 and ST4.
What is Goto Anything in Sublime Text and how do I use it?
Goto Anything (Ctrl+P on Windows/Linux, ⌘+P on Mac) is Sublime Text’s universal navigation tool. After pressing Ctrl+P you can:
- Type a filename to open it instantly
- Type @ to see all functions/symbols in the current file
- Type # to search for a word in the current file
- Type : followed by a number to go to that line
You can combine these typing filename@functionname opens a file and jumps to that function in one step. It is widely considered one of the best file navigation features in any code editor.
Do Sublime Text shortcuts work the same on Windows, Mac, and Linux?
Windows and Linux use nearly identical shortcuts almost every Ctrl-based shortcut works the same on both platforms, with one key difference: column selection uses Ctrl+Alt+Up/Down on Windows but Alt+Shift+Up/Down on Linux. On Mac, the Ctrl key is replaced by ⌘ Command for most shortcuts, and Alt becomes Option. A small number of Mac shortcuts use the Control key (^) instead of Command these are noted in the shortcuts tables above.
How do I delete an entire line in Sublime Text?
Press Ctrl+Shift+K (⌘+Shift+K on Mac) to delete the entire current line without needing to select it first. This is much faster than pressing Home, then Shift+End, then Delete. If you want to cut the line instead of deleting it, press Ctrl+X (⌘+X on Mac) with nothing selected Sublime Text automatically cuts the entire line to your clipboard.
What is the shortcut to duplicate a line in Sublime Text?
Press Ctrl+Shift+D (⌘+Shift+D on Mac) to instantly duplicate the current line or any selected text. The duplicate appears on the next line below. This is especially useful when writing repetitive code blocks duplicate the line, then use multi-cursor editing (Ctrl+D) to change only the parts that differ.
Conclusion
Mastering Sublime Text keyboard shortcuts is one of the fastest ways to level up your coding speed. You do not need to memorize all 130+ shortcuts at once start with Goto Anything (Ctrl+P), the Command Palette (Ctrl+Shift+P), and multi-cursor editing (Ctrl+D). These three alone will transform how you work in Sublime Text within days.
Once those feel natural, work through the navigation and text manipulation shortcuts. Within a few weeks, reaching for the mouse will feel slow by comparison.
All shortcuts in this guide have been verified against Sublime Text 4 (the latest version as of 2026) and apply equally to Sublime Text 3.
READ NEXT:





