Skip to content

↑↓ moveEnter openEsc close

Copy line (empty selection) in VS Code

VS Code 1.96 · 138 shortcuts · checked Nov 2026 · Source: Microsoft docs

In Visual Studio Code, press Cmd+C (Mac), Ctrl+C (Windows, Linux).

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

More VS Code shortcuts: basic editing

ActionMacWindowsLinux
Cut line (empty selection)CmdXCtrlXCtrlX
Move line downOption↓Alt↓Alt↓
Move line upOption↑Alt↑Alt↑
Copy line downOptionShift↓AltShift↓CtrlAltShift↓
Copy line upOptionShift↑AltShift↑CtrlAltShift↑
Delete lineShiftCmdKCtrlShiftKCtrlShiftK
Insert line belowCmdEnterCtrlEnterCtrlEnter
Insert line aboveShiftCmdEnterCtrlShiftEnterCtrlShiftEnter
Jump to matching bracketShiftCmd\CtrlShift\CtrlShift\
Indent lineCmd]Ctrl]Ctrl]

All 33 in basic editing · All 138 VS Code shortcuts