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

ActionWindows/LinuxMac
New WindowCtrl + Shift + N⌘ + Shift + N
Close WindowCtrl + Shift + W⌘ + Shift + W
Open FileCtrl + O⌘ + O
Reopen Last FileCtrl + Shift + T⌘ + Shift + T
New FileCtrl + N⌘ + N
Save FileCtrl + S⌘ + S
Save File AsCtrl + Shift + S⌘ + Shift + S
Close FileCtrl + F4⌘ + F4
Close SublimeCtrl + W⌘ + W
UndoCtrl + Z⌘ + Z
RedoCtrl + Shift + Z⌘ + Shift + Z
Repeat Last ActionCtrl + Y⌘ + Y
Soft UndoCtrl + U⌘ + U
Soft RedoCtrl + Shift + U⌘ + Shift + U
CutCtrl + X⌘ + X
CopyCtrl + C⌘ + C
PasteCtrl + V⌘ + V
Paste & Match IndentationCtrl + Shift + V⌘ + Shift + V

GoTo Anything and Navigation Shortcuts

ActionWindows/LinuxMac
Goto Anything (open any file)Ctrl + P⌘ + P
Goto Symbol in fileCtrl + R⌘ + R
Goto Symbol in projectCtrl + Shift + R⌘ + Shift + R
Goto Word in fileCtrl + ;⌘ + ;
Goto Line NumberCtrl + G⌘ + G
Move one word leftCtrl + Left⌘ + Left
Move one word rightCtrl + Right⌘ + Right
Move one sub-word leftAlt + LeftOption + Left
Move one sub-word rightAlt + RightOption + Right
Move one page upPage UpPage Up
Move one page downPage DownPage Down
Move to beginning of lineHomeHome
Move to end of lineEndEnd
Scroll up without moving cursorCtrl + Up⌘ + Up
Scroll down without moving cursorCtrl + Down⌘ + Down
Jump to matching bracketCtrl + M⌘ + M
Jump forward in historyAlt + –Option + –
Jump backward in historyAlt + +Option + +

Command Palette & Sidebar Shortcuts

ActionWindows/LinuxMac
Open Command PaletteCtrl + Shift + P⌘ + Shift + P
Toggle SidebarCtrl + K, Ctrl + B⌘ + K, ⌘ + B
Show Scope in Status BarCtrl + Shift + Alt + P⌘ + Shift + Alt + P
Open Python ConsoleCtrl + `⌘ + `
Toggle Distraction Free ModeShift + F11Shift + F11
Toggle Full ScreenF11⌘ + Ctrl + F

Multi-Cursor & Column Editing Shortcuts

ActionWindows/LinuxMac
Select next occurrence of wordCtrl + D⌘ + D
Select all occurrences of wordAlt + F3⌘ + Ctrl + G
Skip next occurrenceCtrl + 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 linesCtrl + Shift + L⌘ + Shift + L
Select lines in same indentationCtrl + Shift + J⌘ + Shift + J

Selection Shortcuts

ActionWindows/LinuxMac
Select AllCtrl + A⌘ + A
Select LineCtrl + L⌘ + L
Expand Selection to BracketsCtrl + Shift + M⌘ + Shift + M
Expand Selection to ScopeCtrl + Shift + Space⌘ + Shift + Space
Extend selection one character leftShift + LeftShift + Left
Extend selection one character rightShift + RightShift + Right
Extend selection one word leftCtrl + Shift + Left⌘ + Shift + Left
Extend selection one word rightCtrl + Shift + Right⌘ + Shift + Right
Extend selection one line upShift + UpShift + Up
Extend selection one line downShift + DownShift + Down
Extend selection one page upShift + Page UpShift + Page Up
Extend selection one page downShift + Page DownShift + Page Down
Extend to beginning of lineShift + HomeShift + Home
Extend to end of lineShift + EndShift + End
Extend to beginning of fileCtrl + Shift + Home⌘ + Shift + Home
Extend to end of fileCtrl + Shift + End⌘ + Shift + End

Find and Replace Shortcuts

ActionWindows/LinuxMac
FindCtrl + F⌘ + F
Find and ReplaceCtrl + H⌘ + H
Find in Files (all open tabs)Ctrl + Shift + F⌘ + Shift + F
Replace NextCtrl + Shift + H⌘ + Shift + H
Find NextF3F3
Find PreviousShift + F3Shift + F3
Find and highlight current wordCtrl + D⌘ + D
Find UnderCtrl + F3⌘ + F3
Find Under PreviousCtrl + Shift + F3⌘ + Shift + F3
Find All UnderAlt + F3Option + F3
Slurp Find StringCtrl + E⌘ + E
Slurp Replace StringCtrl + Shift + E⌘ + Shift + E

Text Manipulation Shortcuts

ActionWindows/LinuxMac
Delete LineCtrl + Shift + K⌘ + Shift + K
Duplicate Line or SelectionCtrl + Shift + D⌘ + Shift + D
Move Line UpCtrl + Shift + Up⌘ + Shift + Up
Move Line DownCtrl + Shift + Down⌘ + Shift + Down
Insert Line AfterCtrl + Enter⌘ + Enter
Insert Line BeforeCtrl + Shift + Enter⌘ + Shift + Enter
Join Line Below to CurrentCtrl + J⌘ + J
Transpose CharactersCtrl + T⌘ + T
IndentCtrl + ]⌘ + ]
UnindentCtrl + [⌘ + [
Toggle Line CommentCtrl + /⌘ + /
Toggle Block CommentCtrl + Shift + /⌘ + Shift + /
Sort Lines (case sensitive)F9F9
Sort Lines (case insensitive)Shift + F9Shift + F9
Wrap Lines to 80 CharactersAlt + QOption + Q
Delete to End of LineCtrl + K, Ctrl + K⌘ + K, ⌘ + K
Delete to Start of LineCtrl + K, Ctrl + Backspace⌘ + K, ⌘ + Backspace
Delete Character RightDeleteDelete
Delete Character LeftBackspaceBackspace
Upper CaseCtrl + K, Ctrl + U⌘ + K, ⌘ + U
Lower CaseCtrl + K, Ctrl + L⌘ + K, ⌘ + L

Bookmarks Shortcuts

ActionWindows/LinuxMac
Toggle BookmarkCtrl + F2⌘ + F2
Next BookmarkF2F2
Previous BookmarkShift + F2Shift + F2
Select All BookmarksAlt + F2Option + F2
Clear All BookmarksCtrl + Shift + F2⌘ + Shift + F2

Code Folding Shortcuts

ActionWindows/LinuxMac
Fold CodeCtrl + Shift + [⌘ + Shift + [
Unfold CodeCtrl + Shift + ]⌘ + Shift + ]
Fold AllCtrl + K, Ctrl + 1⌘ + K, ⌘ + 1
Unfold AllCtrl + K, Ctrl + J⌘ + K, ⌘ + J
Fold Level 2Ctrl + K, Ctrl + 2⌘ + K, ⌘ + 2
Fold Level 3Ctrl + K, Ctrl + 3⌘ + K, ⌘ + 3

Split Panes Shortcuts

ActionWindows/LinuxMac
Single pane layoutAlt + Shift + 1Option + Shift + 1
2 vertical panesAlt + Shift + 2Option + Shift + 2
3 vertical panesAlt + Shift + 3Option + Shift + 3
4 vertical panesAlt + Shift + 4Option + Shift + 4
2×2 grid layoutAlt + Shift + 5Option + Shift + 5
2 horizontal panesAlt + Shift + 8Option + Shift + 8
3 horizontal panesAlt + Shift + 9Option + Shift + 9
Focus pane 1Ctrl + 1⌘ + 1
Focus pane 2Ctrl + 2⌘ + 2
Focus pane 3Ctrl + 3⌘ + 3
Focus pane 4Ctrl + 4⌘ + 4
Move file to pane 1Ctrl + Shift + 1⌘ + Shift + 1
Move file to pane 2Ctrl + Shift + 2⌘ + Shift + 2

Spell Check Shortcuts

ActionWindows/LinuxMac
Toggle Spell CheckF6F6
Next MisspellingCtrl + F6⌘ + F6
Previous MisspellingCtrl + Shift + F6⌘ + Shift + F6

Build System Shortcuts

ActionWindows/LinuxMac
BuildCtrl + B⌘ + B
Build with optionsCtrl + Shift + B⌘ + Shift + B
Cancel BuildCtrl + Break⌘ + Break

Linux-Specific Difference Shortcuts

Most Windows shortcuts work identically on Linux. The key differences are:

ActionLinuxWindows
Column select upAlt + Shift + UpCtrl + Alt + Up
Column select downAlt + Shift + DownCtrl + 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:

Pratik

Pratik is the founder of Tutorial Tactic and a productivity tools specialist with 15 years of hands-on experience in Google Workspace, Microsoft Office, and software automation. He has published over 1,500 guides on keyboard shortcuts, software commands, how-to tutorials and workflow optimization, helping readers across the US and India work faster with the tools they use every day. Tutorial Tactic was founded in 2021 with one goal: cut through the noise and give readers exactly what they need fast, verified, and beginner-friendly.
Back to top button