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 Palette | Ctrl+Shift+PCmd+Shift+P |
| Goto Anything (open file) | Ctrl+PCmd+P |
| Goto symbol in file | Ctrl+RCmd+R |
| Goto line | Ctrl+GCtrl+G |
| Toggle sidebar | Ctrl+K Ctrl+BCmd+K Cmd+B |
| Toggle full screen | F11Ctrl+Cmd+F |
| Toggle distraction-free mode | Shift+F11Ctrl+Shift+Cmd+F |
Editing
| Cut line (empty selection) | Ctrl+XCmd+X |
| Insert line after | Ctrl+EnterCmd+Enter |
| Insert line before | Ctrl+Shift+EnterCmd+Shift+Enter |
| Move line/selection up | Ctrl+Shift+UpCtrl+Cmd+Up |
| Move line/selection down | Ctrl+Shift+DownCtrl+Cmd+Down |
| Duplicate line/selection | Ctrl+Shift+DCmd+Shift+D |
| Join line below to current line | Ctrl+JCmd+J |
| Toggle line comment | Ctrl+/Cmd+/ |
| Toggle block comment | Ctrl+Shift+/Cmd+Option+/ |
| Paste and indent | Ctrl+Shift+VCmd+Shift+V |
| Autocomplete | Ctrl+SpaceCtrl+Space |
| Delete from cursor to end of line | Ctrl+K Ctrl+KCmd+K Cmd+K |
| Transform to uppercase | Ctrl+K Ctrl+UCmd+K Cmd+U |
| Transform to lowercase | Ctrl+K Ctrl+LCmd+K Cmd+L |
| Indent line | Ctrl+]Cmd+] |
| Outdent line | Ctrl+[Cmd+[ |
| Undo | Ctrl+ZCmd+Z |
| Redo | Ctrl+YCmd+Shift+Z |
| Soft undo (undo selection movement) | Ctrl+UCmd+U |
Selection & Multiple Cursors
| Select word / add next occurrence | Ctrl+DCmd+D |
| Skip current occurrence, select next | Ctrl+K Ctrl+DCmd+K Cmd+D |
| Select all occurrences of word | Alt+F3Ctrl+Cmd+G |
| Select line | Ctrl+LCmd+L |
| Split selection into lines (cursor per line) | Ctrl+Shift+LCmd+Shift+L |
| Select all | Ctrl+ACmd+A |
| Expand selection to brackets | Ctrl+Shift+MCtrl+Shift+M |
| Expand selection to scope | Ctrl+Shift+SpaceCtrl+Shift+Space |
| Expand selection to indentation | Ctrl+Shift+JCmd+Shift+J |
| Expand selection to tag (HTML/XML) | Ctrl+Shift+ACmd+Shift+A |
| Column selection with mouse | Shift+Right Click DragOption+Drag |
| Return to single cursor | EscEsc |
Find & Replace
| Find | Ctrl+FCmd+F |
| Replace | Ctrl+HCmd+Option+F |
| Find in files (project-wide) | Ctrl+Shift+FCmd+Shift+F |
| Find next | F3Cmd+G |
| Find previous | Shift+F3Cmd+Shift+G |
| Incremental find | Ctrl+ICmd+I |
| Quick find word under cursor | Ctrl+F3Cmd+F3 |
Files & Tabs
| New file | Ctrl+NCmd+N |
| Open file | Ctrl+OCmd+O |
| Save file | Ctrl+SCmd+S |
| Save As | Ctrl+Shift+SCmd+Shift+S |
| Close tab | Ctrl+WCmd+W |
| Reopen last closed tab | Ctrl+Shift+TCmd+Shift+T |
| Next tab | Ctrl+TabCtrl+Tab |
| Previous tab | Ctrl+Shift+TabCtrl+Shift+Tab |
| Switch to tab 1-9 | Alt+1-9Cmd+1-9 |
| New window | Ctrl+Shift+NCmd+Shift+N |
Split Layouts
| Single column layout | Alt+Shift+1Cmd+Option+1 |
| Two column layout | Alt+Shift+2Cmd+Option+2 |
| Three column layout | Alt+Shift+3Cmd+Option+3 |
| 2x2 grid layout | Alt+Shift+5Cmd+Option+5 |
| Two row layout | Alt+Shift+8Cmd+Option+8 |
| Focus group 1/2/3 | Ctrl+1/2/3Ctrl+1/2/3 |
| Move file to group 1/2/3 | Ctrl+Shift+1/2/3Ctrl+Shift+1/2/3 |
Bookmarks & Folding
| Toggle bookmark | Ctrl+F2Cmd+F2 |
| Next bookmark | F2F2 |
| Previous bookmark | Shift+F2Shift+F2 |
| Fold code | Ctrl+Shift+[Cmd+Option+[ |
| Unfold code | Ctrl+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.
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.