Sublime Text Shortcuts for Windows

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

Editing

Cut line
Ctrl+X
Insert line after
Ctrl+Enter
Insert line before
Ctrl+Shift+Enter
Swap line up
Ctrl+Shift+Up
Swap line down
Ctrl+Shift+Down
Select lineRepeat to select the next lines.
Ctrl+L
Select wordRepeat to select other occurrences.
Ctrl+D
Jump to closing parenthesesRepeat to jump to the opening parentheses.
Ctrl+M
Select all contents of the current parentheses
Ctrl+Shift+M
Delete Line
Ctrl+Shift+K
Delete from cursor to end of line
Ctrl+K,Ctrl+K
Delete from cursor to start of line
Ctrl+K,Ctrl+Bksp
Indent current line(s)
Ctrl+]
Un-indent current line(s)
Ctrl+[
Duplicate line(s)
Ctrl+Shift+D
Join line below to the end of the current line
Ctrl+Shift+J
Comment/un-comment current line
Ctrl+/
Block comment current selection
Ctrl+Shift+/
Redo, or repeat last keyboard shortcut command
Ctrl+Y
Paste and indent correctly
Ctrl+Shift+V
Select next auto-complete suggestion
Ctrl+Space
Soft undoJumps to your last change before undoing it, if repeated.
Ctrl+U
Wrap selection in html tag
Alt+Shift+W
Close current html tag
Alt+.

Windows-only

Extra cursor on the line above
Ctrl+Alt+Up
Extra cursor on the line below
Ctrl+Alt+Down

Build

Build
F7
or
Ctrl+B
Build selected
Ctrl+Shift+B
Cancel buildThe Pause/Break key.
Ctrl+Pause

General

Command prompt
Ctrl+Shift+P
Toggle side bar
Ctrl+K,Ctrl+B
Show scope name and syntax context backtrace in a popup
Ctrl+Alt+Shift+P

Find/Replace

Find
Ctrl+F
Replace
Ctrl+H
Find in files
Ctrl+Shift+F

Tabs

Open last closed tab
Ctrl+Shift+T
Cycle up through tabs
Ctrl+Pg Up
Cycle down through tabs
Ctrl+Pg Dn
Switch to a previous tabHold Ctrl and repeat Tab to keep cycling through previous tabs.
Ctrl+Tab
Switch in reverse order to a previous tabHold Ctrl+Shift and repeat Tab to cycle through previous tabs in reverse.
Ctrl+Shift+Tab
Close current tab
Ctrl+W
Switch to tab number
Alt+<1-9>

Split window

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

Folding

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

Bookmarks

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

Text manipulation

Transform to upper case
Ctrl+K,Ctrl+U
Transform to lower case
Ctrl+K,Ctrl+L

Intro

Sublime Text on Windows uses Ctrl for nearly every shortcut, with Alt reserved for split-window layouts and tab switching by number.

Windows-specific shortcut notes

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

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

Extra cursors use Ctrl+Alt. Ctrl+Alt+Up or Down adds a cursor on the line above or below, separate from the Ctrl+D word-selection method.

Alt+Shift switches layout. Alt+Shift+2 through Alt+Shift+9 split the view into columns, rows, or a grid.

Printable PDF

The Sublime Text Windows shortcut list is available as a printable PDF. The multi-cursor and Ctrl+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.