Skip to content

↑↓ moveEnter openEsc close

Sort lines in Sublime Text

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

In Sublime Text, press F5 (Mac), F9 (Windows, Linux).

What else uses F5? · What else uses F9?

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

All 15 in editing · All 52 Sublime Text shortcuts