Sublime Text keyboard shortcuts for Mac
52 default Sublime Text shortcuts on Mac, grouped by task.
52 shortcuts
Keys:
General
10 shortcuts| Action | Keys |
|---|---|
| Command palette | ShiftCmdP |
| Goto Anything (open a file) | CmdP |
| Go to a symbol in the file | CmdR |
| Go to a symbol in the project | ShiftCmdR |
| Go to a line | CtrlG |
| Show or hide the side bar | CmdK,CmdB |
| Full screen | CtrlCmdF |
| Distraction-free mode | CtrlShiftCmdF |
| Show or hide the console | Ctrl` |
| Build | CmdB |
Files and tabs
9 shortcuts| Action | Keys |
|---|---|
| New file | CmdN |
| Save | CmdS |
| Save as | ShiftCmdS |
| Close the file | CmdW |
| Reopen the closed file | ShiftCmdT |
| Next tab | OptionCmd→ |
| Previous tab | OptionCmd← |
| Two-column layout | OptionCmd2 |
| Single-column layout | OptionCmd1 |
Editing
15 shortcuts| Action | Keys |
|---|---|
| Duplicate the line | ShiftCmdD |
| Delete the line | CtrlShiftK |
| Move the line up | CtrlCmd↑ |
| Move the line down | CtrlCmd↓ |
| Insert a line after | CmdEnter |
| Insert a line before | ShiftCmdEnter |
| Join lines | CmdJ |
| Comment or uncomment the line | Cmd/ |
| Block comment | OptionCmd/ |
| Indent | Cmd] |
| Unindent | Cmd[ |
| Jump to the matching bracket | CtrlM |
| Convert to upper case | CmdK,CmdU |
| Convert to lower case | CmdK,CmdL |
| Sort lines | F5 |
Selection
8 shortcuts| Action | Keys |
|---|---|
| Add the next match to the selection | CmdD |
| Skip this match and add the next | CmdK,CmdD |
| Select all matches | CtrlCmdG |
| Undo the last selection | CmdU |
| Select the line | CmdL |
| Split the selection into lines | ShiftCmdL |
| Expand the selection to brackets | CtrlShiftM |
| Add a cursor on the line below | CtrlShift↓ |
Search
6 shortcuts| Action | Keys |
|---|---|
| Find | CmdF |
| Replace | OptionCmdF |
| Find next | CmdG |
| Find previous | ShiftCmdG |
| Find in files | ShiftCmdF |
| Go to definition | F12 |
Code folding
4 shortcuts| Action | Keys |
|---|---|
| Fold | OptionCmd[ |
| Unfold | OptionCmd] |
| Fold all | CmdK,Cmd1 |
| Unfold all | CmdK,CmdJ |
No shortcuts match. Try fewer words, the key names only, or search every app.
These are the default Sublime Text key bindings on Mac, from Sublime HQ's official list for version 4 (Build 4200). Shortcuts that exist only on another system are left out here; the all-systems view shows every binding side by side.
Other systems: Sublime Text shortcuts for Windows, Sublime Text shortcuts for Linux. Or print the Sublime Text cheat sheet.