Sublime Text keyboard shortcuts
Sublime Text is a fast, lightweight code editor known for multiple selections and its Goto Anything search. These keys edit and move lines, quick-open files, jump to symbols and lines, run builds, and switch tabs or fold code.
Windows, macOS, Linux · 39 shortcutsEditing
Editing shortcuts manipulate lines, selections, indentation, comments, completion, and the undo history in the active view.
| Action | Shortcuts |
|---|---|
| Cut the current line | Windows / LinuxCtrl + X macOSCmd + X |
| Insert a line after the current line | Windows / LinuxCtrl + Enter macOSCmd + Return |
| Insert a line before the current line | Windows / LinuxCtrl + Shift + Enter macOSShift + Cmd + Return |
| Swap the current line up | Windows / LinuxCtrl + Shift + Up macOSCtrl + Cmd + Up |
| Swap the current line down | Windows / LinuxCtrl + Shift + Down macOSCtrl + Cmd + Down |
| Select the current line | Windows / LinuxCtrl + L macOSCmd + L |
| Select the current word | Windows / LinuxCtrl + D macOSCmd + D |
| Jump to the matching parenthesis | Windows / macOS / LinuxCtrl + M |
| Select the contents of the current parentheses | Windows / macOS / LinuxCtrl + Shift + M |
| Delete from the cursor to the end of the line | Windows / LinuxCtrl + K then Ctrl + K macOSCmd + K then Cmd + K |
| Indent current lines | Windows / LinuxCtrl + ] macOSCmd + ] |
| Unindent current lines | Windows / LinuxCtrl + [ macOSCmd + [ |
| Duplicate lines | Windows / LinuxCtrl + Shift + D macOSShift + Cmd + D |
| Join the line below | Windows / LinuxCtrl + Shift + J macOSCmd + J |
| Comment or uncomment the current line | Windows / LinuxCtrl + / macOSCmd + / |
| Comment the current selection as a block | Windows / LinuxCtrl + Shift + / macOSOption + Cmd + / |
| Redo or repeat the last shortcut command | Windows / LinuxCtrl + Y macOSCmd + Y |
| Paste and indent correctly | Windows / LinuxCtrl + Shift + V macOSShift + Cmd + V |
| Select the next autocomplete suggestion | Windows / macOS / LinuxCtrl + Space |
| Soft undo | Windows / LinuxCtrl + U macOSCmd + U |
Tabs and folding
Tabs and folding shortcuts reopen or close files, switch tabs, select groups, and collapse code by nesting level.
| Action | Shortcuts |
|---|---|
| Open the last closed tab | Windows / LinuxCtrl + Shift + T macOSShift + Cmd + T |
| Cycle through recent tabs | Windows / macOS / LinuxCtrl + Tab |
| Close the current tab | Windows / LinuxCtrl + W macOSCmd + W |
| Switch to a tab by number | Windows / LinuxAlt + 1 macOSCmd + 1 |
| Fold | Windows / macOS / LinuxCtrl + Shift + [ |
| Unfold | Windows / macOS / LinuxCtrl + Shift + ] |
| Toggle a bookmark | Windows / LinuxCtrl + F2 macOSCmd + F2 |
| Go to the next bookmark | Windows / macOS / LinuxF2 |
| Go to the previous bookmark | Windows / macOS / LinuxShift + F2 |
Source
official Sublime Text keyboard shortcut reference · Checked
Sublime Text keyboard shortcut tables checked September 1, 2026. Windows and Linux share most bindings, while macOS changes the primary modifier and a few editing commands.