Skip to content

↑↓ moveEnter openEsc close

Comment or uncomment the line in Sublime Text

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

In Sublime Text, press Cmd+/ (Mac), Ctrl+/ (Windows, Linux).

What else uses Cmd+/? · What else uses Ctrl+/?

More Sublime Text shortcuts: editing

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
Block commentOptionCmd/CtrlShift/CtrlShift/
IndentCmd]Ctrl]Ctrl]
UnindentCmd[Ctrl[Ctrl[

All 15 in editing · All 52 Sublime Text shortcuts