Sublime Text keyboard shortcuts

Sublime Text is a fast, lightweight code editor loved for its speed, multiple selections, and Goto Anything navigation. Its minimal interface is built around the assumption that your hands stay on the keyboard. These default shortcuts unlock the editing tricks Sublime is famous for. This cheat sheet covers 67 default shortcuts for Windows and Mac.

General

Command PaletteCtrl+Shift+PCmd+Shift+P
Goto Anything (open file)Ctrl+PCmd+P
Goto symbol in fileCtrl+RCmd+R
Goto lineCtrl+GCtrl+G
Toggle sidebarCtrl+K Ctrl+BCmd+K Cmd+B
Toggle full screenF11Ctrl+Cmd+F
Toggle distraction-free modeShift+F11Ctrl+Shift+Cmd+F

Editing

Cut line (empty selection)Ctrl+XCmd+X
Insert line afterCtrl+EnterCmd+Enter
Insert line beforeCtrl+Shift+EnterCmd+Shift+Enter
Move line/selection upCtrl+Shift+UpCtrl+Cmd+Up
Move line/selection downCtrl+Shift+DownCtrl+Cmd+Down
Duplicate line/selectionCtrl+Shift+DCmd+Shift+D
Join line below to current lineCtrl+JCmd+J
Toggle line commentCtrl+/Cmd+/
Toggle block commentCtrl+Shift+/Cmd+Option+/
Paste and indentCtrl+Shift+VCmd+Shift+V
AutocompleteCtrl+SpaceCtrl+Space
Delete from cursor to end of lineCtrl+K Ctrl+KCmd+K Cmd+K
Transform to uppercaseCtrl+K Ctrl+UCmd+K Cmd+U
Transform to lowercaseCtrl+K Ctrl+LCmd+K Cmd+L
Indent lineCtrl+]Cmd+]
Outdent lineCtrl+[Cmd+[
UndoCtrl+ZCmd+Z
RedoCtrl+YCmd+Shift+Z
Soft undo (undo selection movement)Ctrl+UCmd+U

Selection & Multiple Cursors

Select word / add next occurrenceCtrl+DCmd+D
Skip current occurrence, select nextCtrl+K Ctrl+DCmd+K Cmd+D
Select all occurrences of wordAlt+F3Ctrl+Cmd+G
Select lineCtrl+LCmd+L
Split selection into lines (cursor per line)Ctrl+Shift+LCmd+Shift+L
Select allCtrl+ACmd+A
Expand selection to bracketsCtrl+Shift+MCtrl+Shift+M
Expand selection to scopeCtrl+Shift+SpaceCtrl+Shift+Space
Expand selection to indentationCtrl+Shift+JCmd+Shift+J
Expand selection to tag (HTML/XML)Ctrl+Shift+ACmd+Shift+A
Column selection with mouseShift+Right Click DragOption+Drag
Return to single cursorEscEsc

Find & Replace

FindCtrl+FCmd+F
ReplaceCtrl+HCmd+Option+F
Find in files (project-wide)Ctrl+Shift+FCmd+Shift+F
Find nextF3Cmd+G
Find previousShift+F3Cmd+Shift+G
Incremental findCtrl+ICmd+I
Quick find word under cursorCtrl+F3Cmd+F3

Files & Tabs

New fileCtrl+NCmd+N
Open fileCtrl+OCmd+O
Save fileCtrl+SCmd+S
Save AsCtrl+Shift+SCmd+Shift+S
Close tabCtrl+WCmd+W
Reopen last closed tabCtrl+Shift+TCmd+Shift+T
Next tabCtrl+TabCtrl+Tab
Previous tabCtrl+Shift+TabCtrl+Shift+Tab
Switch to tab 1-9Alt+1-9Cmd+1-9
New windowCtrl+Shift+NCmd+Shift+N

Split Layouts

Single column layoutAlt+Shift+1Cmd+Option+1
Two column layoutAlt+Shift+2Cmd+Option+2
Three column layoutAlt+Shift+3Cmd+Option+3
2x2 grid layoutAlt+Shift+5Cmd+Option+5
Two row layoutAlt+Shift+8Cmd+Option+8
Focus group 1/2/3Ctrl+1/2/3Ctrl+1/2/3
Move file to group 1/2/3Ctrl+Shift+1/2/3Ctrl+Shift+1/2/3

Bookmarks & Folding

Toggle bookmarkCtrl+F2Cmd+F2
Next bookmarkF2F2
Previous bookmarkShift+F2Shift+F2
Fold codeCtrl+Shift+[Cmd+Option+[
Unfold codeCtrl+Shift+]Cmd+Option+]

Put your top Sublime Text shortcuts on real keys

The five Sublime Text actions most worth binding to a physical macropad key:

Ctrl+DCmd+D Select word / add next occurrence Sublime's signature multi-select move, pressed hundreds of times a day.
Ctrl+Shift+PCmd+Shift+P Command Palette Every command in the editor is one fuzzy search away.
Ctrl+PCmd+P Goto Anything The fastest file switcher in any editor deserves a physical key.
Ctrl+Shift+FCmd+Shift+F Find in files Project-wide search starts most editing sessions.
Ctrl+Shift+DCmd+Shift+D Duplicate line/selection Duplicate-then-edit is a core repetitive pattern in code and config files.

I hand-build small-batch programmable macropads (QMK/VIA) in Barcelona. One press, any shortcut, any app.

See the macropads

Sublime Text shortcut FAQs

What is Sublime Text's most famous shortcut?
Ctrl+D (Cmd+D on Mac). It selects the word under the cursor, and pressing it again adds the next occurrence with a new cursor, letting you edit every instance at once. Sublime popularized this multi-select workflow.
How do I open a file quickly in Sublime Text?
Press Ctrl+P (Cmd+P on Mac) for Goto Anything and start typing a fuzzy file name. Add ':' plus a number to jump to a line, or '@' to jump to a symbol in that file.
How do I get multiple cursors in Sublime Text?
Ctrl+D (Cmd+D) adds the next occurrence of the current word, Ctrl+Shift+L (Cmd+Shift+L) puts a cursor on every line of a selection, and Alt+F3 (Ctrl+Cmd+G on Mac) selects all occurrences at once.
How do I split the editor in Sublime Text?
Use the layout shortcuts: Alt+Shift+2 on Windows or Cmd+Option+2 on Mac for two columns (1, 3, 5, 8 give other layouts). Ctrl+1/2/3 focuses a group and Ctrl+Shift+1/2/3 moves the current file into it.
Can I customize keyboard shortcuts in Sublime Text?
Yes. Open Preferences > Key Bindings and add JSON entries to the user keymap file. Your bindings override the defaults shown side by side.