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 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 macOSShift + Cmd + 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 tabs, switch tabs, fold code, and set or jump to bookmarks.
| Action | Shortcuts |
|---|---|
| Open the last closed tab | Windows / LinuxCtrl + Shift + T macOSShift + Cmd + T |
| Cycle through recent tabsTo reverse the cycle, use Ctrl+Shift+Tab. | 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 / LinuxCtrl + Shift + [ macOSOption + Cmd + [ |
| Unfold | Windows / LinuxCtrl + Shift + ] macOSOption + Cmd + ] |
| 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
Sublime Text Community Documentation keyboard shortcuts · Checked
Windows and Linux share most keys. macOS uses a different main modifier and changes a few editing commands.