Sublime Text Shortcuts for Mac

Keyboard shortcuts for Sublime Text on Mac. Covers editing, navigation, multi-cursor selection, tabs, split windows, and code folding.
Key label style

Editing

Cut line
Cmd+X
Insert line after
Cmd+Return
Insert line before
Cmd+Shift+Return
Swap line up
Cmd+Ctrl+Up
Swap line down
Cmd+Ctrl+Down
Select lineRepeat to select the next lines.
Cmd+L
Select wordRepeat to select the next occurrence.
Cmd+D
Select all occurrences of current selection
Cmd+Ctrl+G
Extra cursor on the line above
Ctrl+Shift+Up
Extra cursor on the line below
Ctrl+Shift+Down
Move to beginning of line
Ctrl+A
Move to beginning of text on line
Cmd+Left
Move to end of line
Ctrl+E
or
Cmd+Right
Delete from cursor to end of line
Cmd+K,Cmd+K
Delete from cursor to start of line
Cmd+K,Cmd+Del
Jump to closing parenthesesRepeat to jump to the opening parentheses.
Ctrl+M
Select all contents of the current parentheses
Ctrl+Shift+M
Insert XML long tag
Ctrl+Shift+W
Indent current line(s)
Cmd+]
Un-indent current line(s)
Cmd+[
Duplicate line(s)
Cmd+Shift+D
Join line below to the end of the current line
Cmd+J
Comment/un-comment current line
Cmd+/
Block comment current selection
Cmd+Opt+/
Redo, or repeat last keyboard shortcut command
Cmd+Y
Paste and indent correctly
Cmd+Shift+V
Select next auto-complete suggestion
Ctrl+Space
Soft undoJumps to your last change before undoing it, if repeated.
Cmd+U
Scroll lines up
Ctrl+Opt+Up
Scroll lines down
Ctrl+Opt+Down

Build

Build
F7
or
Cmd+B
Build selected
Cmd+Shift+B
Cancel build
Ctrl+C

General

Command Palette
Cmd+Shift+P
Python Console
Ctrl+`
Toggle fullscreen mode
Cmd+Ctrl+F
Toggle distraction-free mode
Cmd+Ctrl+Shift+F
Toggle side bar
Cmd+K,Cmd+B
Show scope in status bar
Ctrl+Shift+P

Find/Replace

Find
Cmd+F
Replace
Cmd+Opt+F
Find in files
Cmd+Shift+F
Incremental Find
Cmd+I

Scrolling

Scroll down one page
Ctrl+V
Center current line vertically in page
Ctrl+L
Scroll to end of file
Cmd+Down
Scroll to start of file
Cmd+Up

Tabs

Open last closed tab
Cmd+Shift+T
Jump to tab in current group
Cmd+<1-8>
Jump to last tab in current group
Cmd+9
Cycle left through tabs
Cmd+Shift+[
Cycle right through tabs
Cmd+Shift+]
Cycle up through recent tabs
Ctrl+Tab
Cycle down through recent tabs
Ctrl+Shift+Tab

Split window

Revert view to single column
Cmd+Opt+1
Split view into two columns
Cmd+Opt+2
Split view into three columns
Cmd+Opt+3
Split view into four columns
Cmd+Opt+4
Set view to grid (4 groups)
Cmd+Opt+5
Jump to group
Ctrl+<1-4>
Move file to specified group
Ctrl+Shift+<1-4>

Folding

Fold
Cmd+Opt+[
Unfold
Cmd+Opt+]
Fold by level 1 to 9
Cmd+K,Cmd+<1-9>
Fold tag attributes
Cmd+K,Cmd+T

Bookmarks

Toggle bookmark
Cmd+F2
Next bookmark
F2
Previous bookmark
Shift+F2
Clear bookmarks
Cmd+Shift+F2

Text manipulation

Transform to Uppercase
Cmd+K,Cmd+U
Transform to Lowercase
Cmd+K,Cmd+L

Intro

Sublime Text on Mac uses Cmd for most editing commands, but keeps Ctrl for a handful, including multi-cursor placement and auto-complete, matching macOS's own mixed conventions.

Mac-specific shortcut notes

Cmd+D builds multi-selections. Press it once to select the word under the cursor, then again to add each further occurrence to the selection.

Cmd+K starts two-step commands. Delete-to-end-of-line (Cmd+K, Cmd+K), toggle sidebar (Cmd+K, Cmd+B), and fold-by-level (Cmd+K, Cmd+1 through 9) all share this prefix.

A few commands stay on Ctrl. Extra cursors (Ctrl+Shift+Up/Down), auto-complete (Ctrl+Space), and moving to line start (Ctrl+A) don't use Cmd.

Split windows use Cmd+Option. Cmd+Option+1 through 5 switch between single-column, multi-column, and grid layouts.

Printable PDF

The Sublime Text Mac shortcut list is available as a printable PDF. The multi-cursor and Cmd+K chord shortcuts are worth learning first.

FAQ

Need more than shortcuts?
Visit the Sublime Text app page for an overview and helpful links.

Want to suggest a new app, report a bug, or get help? Email us at info@hkeys.app.

For anything else or just a quick hello, write to us at info@hkeys.app.