Sublime Text keyboard shortcuts

Sublime Text's current community documentation publishes separate Windows/Linux and macOS tables for editing, navigation, builds, search, tabs, folding, and bookmarks.

Windows, macOS, Linux · 40 shortcuts

Editing

Editing shortcuts manipulate lines, selections, indentation, comments, completion, and the undo history in the active view.

ActionWindowsmacOSLinux
Cut the current lineCtrlXCmdXCtrlX
Insert a line after the current lineCtrlEnterCmdReturnCtrlEnter
Insert a line before the current lineCtrlShiftEnterShiftCmdReturnCtrlShiftEnter
Swap the current line upCtrlShiftUpCtrlCmdUpCtrlShiftUp
Swap the current line downCtrlShiftDownCtrlCmdDownCtrlShiftDown
Select the current lineCtrlLCmdLCtrlL
Select the current wordCtrlDCmdDCtrlD
Jump to the matching parenthesisCtrlMCtrlMCtrlM
Select the contents of the current parenthesesCtrlShiftMCtrlShiftMCtrlShiftM
Delete from the cursor to the end of the lineCtrlKCtrlKCmdKCmdKCtrlKCtrlK
Indent current linesCtrl]Cmd]Ctrl]
Unindent current linesCtrl[Cmd[Ctrl[
Duplicate linesCtrlShiftDShiftCmdDCtrlShiftD
Join the line belowCtrlShiftJCmdJCtrlShiftJ
Comment or uncomment the current lineCtrl/Cmd/Ctrl/
Comment the current selection as a blockCtrlShift/OptionCmd/CtrlShift/
Redo or repeat the last shortcut commandCtrlYCmdYCtrlY
Paste and indent correctlyCtrlShiftVShiftCmdVCtrlShiftV
Select the next autocomplete suggestionCtrlSpaceCtrlSpaceCtrlSpace
Soft undoCtrlUCmdUCtrlU

Tabs and folding

Tabs and folding shortcuts reopen or close files, switch tabs, select groups, and collapse code by nesting level.

ActionWindowsmacOSLinux
Open the last closed tabCtrlShiftTShiftCmdTCtrlShiftT
Cycle through recent tabsCtrlTabCtrlTabCtrlTab
Close the current tabCtrlWCmdWCtrlW
Switch to a tab by numberAlt1Cmd1Alt1
FoldCtrlShift[CtrlShift[CtrlShift[
UnfoldCtrlShift]CtrlShift]CtrlShift]
Toggle a bookmarkCtrlF2CmdF2CtrlF2
Go to the next bookmarkF2F2F2
Go to the previous bookmarkShiftF2ShiftF2ShiftF2

Make a printable Sublime Text sheet