Skip to content

↑↓ moveEnter openEsc close

Comment or uncomment lines in Zed

Zed 0.210 · 40 shortcuts · checked Nov 2026 · Source: Zed Industries docs

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

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

More Zed shortcuts: editing

ActionMacWindowsLinux
UndoCmdZCtrlZCtrlZ
RedoShiftCmdZCtrlShiftZCtrlShiftZ
Duplicate the lineShiftCmdDCtrlShiftDCtrlShiftD
Delete the lineShiftCmdKCtrlShiftKCtrlShiftK
Move the line upOption↑Alt↑Alt↑
Move the line downOption↓Alt↓Alt↓
Select the next occurrenceCmdDCtrlDCtrlD
Select every occurrenceShiftCmdLCtrlShiftLCtrlShiftL
Format the fileShiftCmdICtrlShiftICtrlShiftI
Show completionsCtrlSpaceCtrlSpaceCtrlSpace

All 14 in editing · All 40 Zed shortcuts