Skip to content

↑↓ moveEnter openEsc close

Insert a line before in Sublime Text

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

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

What else uses Shift+Cmd+Enter? · What else uses Ctrl+Shift+Enter?

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
Join linesCmdJCtrlJCtrlJ
Comment or uncomment the lineCmd/Ctrl/Ctrl/
Block commentOptionCmd/CtrlShift/CtrlShift/
IndentCmd]Ctrl]Ctrl]
UnindentCmd[Ctrl[Ctrl[

All 15 in editing · All 52 Sublime Text shortcuts