Skip to content

↑↓ moveEnter openEsc close

Sublime Text keyboard shortcuts

Sublime Text 4 (Build 4200) · 52 shortcuts · checked Nov 2026 · Source: Sublime HQ docs

Sublime Text is a fast code editor for Windows, macOS and Linux, known for Goto Anything and multiple selections. These are its default key bindings.

Most used Sublime Text keyboard shortcuts

The Sublime Text shortcuts worth learning first. The full list follows, grouped by task.

52 shortcuts

Small screen: your system's keys only. Pick another system in the tabs above.

General

10 shortcuts
ActionMacWindowsLinux
Command paletteShiftCmdPCtrlShiftPCtrlShiftP
Goto Anything (open a file)CmdPCtrlPCtrlP
Go to a symbol in the fileCmdRCtrlRCtrlR
Go to a symbol in the projectShiftCmdRCtrlShiftRCtrlShiftR
Go to a lineCtrlGCtrlGCtrlG
Show or hide the side barCmdK,CmdBCtrlK,CtrlBCtrlK,CtrlB
Full screenCtrlCmdFF11F11
Distraction-free modeCtrlShiftCmdFShiftF11ShiftF11
Show or hide the consoleCtrl`Ctrl`Ctrl`
BuildCmdBCtrlBCtrlB

Files and tabs

9 shortcuts
ActionMacWindowsLinux
New fileCmdNCtrlNCtrlN
SaveCmdSCtrlSCtrlS
Save asShiftCmdSCtrlShiftSCtrlShiftS
Close the fileCmdWCtrlWCtrlW
Reopen the closed fileShiftCmdTCtrlShiftTCtrlShiftT
Next tabOptionCmd→CtrlPageDownCtrlPageDown
Previous tabOptionCmd←CtrlPageUpCtrlPageUp
Two-column layoutOptionCmd2AltShift2AltShift2
Single-column layoutOptionCmd1AltShift1AltShift1

Editing

15 shortcuts
ActionMacWindowsLinux
Duplicate the lineShiftCmdDCtrlShiftDCtrlShiftD
Delete the lineCtrlShiftKCtrlShiftKCtrlShiftK
Move the line upCtrlCmd↑CtrlShift↑CtrlShift↑
Move the line downCtrlCmd↓CtrlShift↓CtrlShift↓
Insert a line afterCmdEnterCtrlEnterCtrlEnter
Insert a line beforeShiftCmdEnterCtrlShiftEnterCtrlShiftEnter
Join linesCmdJCtrlJCtrlJ
Comment or uncomment the lineCmd/Ctrl/Ctrl/
Block commentOptionCmd/CtrlShift/CtrlShift/
IndentCmd]Ctrl]Ctrl]
UnindentCmd[Ctrl[Ctrl[
Jump to the matching bracketCtrlMCtrlMCtrlM
Convert to upper caseCmdK,CmdUCtrlK,CtrlUCtrlK,CtrlU
Convert to lower caseCmdK,CmdLCtrlK,CtrlLCtrlK,CtrlL
Sort linesF5F9F9

Selection

8 shortcuts
ActionMacWindowsLinux
Add the next match to the selectionCmdDCtrlDCtrlD
Skip this match and add the nextCmdK,CmdDCtrlK,CtrlDCtrlK,CtrlD
Select all matchesCtrlCmdGAltF3AltF3
Undo the last selectionCmdUCtrlUCtrlU
Select the lineCmdLCtrlLCtrlL
Split the selection into linesShiftCmdLCtrlShiftLCtrlShiftL
Expand the selection to bracketsCtrlShiftMCtrlShiftMCtrlShiftM
Add a cursor on the line belowCtrlShift↓CtrlAlt↓AltShift↓
6 shortcuts
ActionMacWindowsLinux
FindCmdFCtrlFCtrlF
ReplaceOptionCmdFCtrlHCtrlH
Find nextCmdGF3F3
Find previousShiftCmdGShiftF3ShiftF3
Find in filesShiftCmdFCtrlShiftFCtrlShiftF
Go to definitionF12F12F12

Code folding

4 shortcuts
ActionMacWindowsLinux
FoldOptionCmd[CtrlShift[CtrlShift[
UnfoldOptionCmd]CtrlShift]CtrlShift]
Fold allCmdK,Cmd1CtrlK,Ctrl1CtrlK,Ctrl1
Unfold allCmdK,CmdJCtrlK,CtrlJCtrlK,CtrlJ
Show the key map: which keys Sublime Text uses mostDarker orange = used by more shortcuts

Sublime Text editing shortcuts: comment, delete, duplicate and move lines

Multiple cursors and selection in Sublime Text

Build, run and window shortcuts in Sublime Text

Run a program
Ctrl+B (Cmd+B on Mac) runs the current file with the build system for its language, such as Python; Tools > Build System picks another.
Format JSON and expand HTML
Sublime has no built-in formatter: install Pretty JSON through Package Control (Ctrl+Shift+P > Install Package), and Emmet for HTML abbreviations that expand with Tab.

Change keyboard shortcuts in Sublime Text

Key bindings file
Preferences > Key Bindings opens the defaults on the left and your own file on the right. Copy a line to the right, change its keys and save; your file overrides the defaults.

Sublime Text keyboard shortcuts: questions

Why are Sublime Text keyboard shortcuts not working?
A package can rebind keys: check the console (Ctrl+`) after typing sublime.log_input(True) and sublime.log_commands(True) to see what each key does. On Linux, the desktop may take Ctrl+Alt combinations first.

These are the default key bindings in Sublime Text 4 (Build 4200), as published by Sublime HQ. Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.

Single-system lists: Sublime Text keyboard shortcuts for Mac, Sublime Text keyboard shortcuts for Windows, Sublime Text keyboard shortcuts for Linux.

Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.