Sublime Text keyboard shortcuts
Sublime Text's current community documentation publishes separate Windows/Linux and macOS tables for editing, navigation, builds, search, tabs, folding, and bookmarks.
Windows, macOS, Linux · 40 shortcutsEditing
Editing shortcuts manipulate lines, selections, indentation, comments, completion, and the undo history in the active view.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Cut the current line | CtrlX | CmdX | CtrlX |
| Insert a line after the current line | CtrlEnter | CmdReturn | CtrlEnter |
| Insert a line before the current line | CtrlShiftEnter | ShiftCmdReturn | CtrlShiftEnter |
| Swap the current line up | CtrlShiftUp | CtrlCmdUp | CtrlShiftUp |
| Swap the current line down | CtrlShiftDown | CtrlCmdDown | CtrlShiftDown |
| Select the current line | CtrlL | CmdL | CtrlL |
| Select the current word | CtrlD | CmdD | CtrlD |
| Jump to the matching parenthesis | CtrlM | CtrlM | CtrlM |
| Select the contents of the current parentheses | CtrlShiftM | CtrlShiftM | CtrlShiftM |
| Delete from the cursor to the end of the line | CtrlKCtrlK | CmdKCmdK | CtrlKCtrlK |
| Indent current lines | Ctrl] | Cmd] | Ctrl] |
| Unindent current lines | Ctrl[ | Cmd[ | Ctrl[ |
| Duplicate lines | CtrlShiftD | ShiftCmdD | CtrlShiftD |
| Join the line below | CtrlShiftJ | CmdJ | CtrlShiftJ |
| Comment or uncomment the current line | Ctrl/ | Cmd/ | Ctrl/ |
| Comment the current selection as a block | CtrlShift/ | OptionCmd/ | CtrlShift/ |
| Redo or repeat the last shortcut command | CtrlY | CmdY | CtrlY |
| Paste and indent correctly | CtrlShiftV | ShiftCmdV | CtrlShiftV |
| Select the next autocomplete suggestion | CtrlSpace | CtrlSpace | CtrlSpace |
| Soft undo | CtrlU | CmdU | CtrlU |
Tabs and folding
Tabs and folding shortcuts reopen or close files, switch tabs, select groups, and collapse code by nesting level.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Open the last closed tab | CtrlShiftT | ShiftCmdT | CtrlShiftT |
| Cycle through recent tabs | CtrlTab | CtrlTab | CtrlTab |
| Close the current tab | CtrlW | CmdW | CtrlW |
| Switch to a tab by number | Alt1 | Cmd1 | Alt1 |
| Fold | CtrlShift[ | CtrlShift[ | CtrlShift[ |
| Unfold | CtrlShift] | CtrlShift] | CtrlShift] |
| Toggle a bookmark | CtrlF2 | CmdF2 | CtrlF2 |
| Go to the next bookmark | F2 | F2 | F2 |
| Go to the previous bookmark | ShiftF2 | ShiftF2 | ShiftF2 |