Skip to content

↑↓ moveEnter openEsc close

Move line up in VS Code

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

In Visual Studio Code, press Option+↑ (Mac), Alt+↑ (Windows, Linux).

What else uses Option+↑? · What else uses Alt+↑?

More VS Code shortcuts: basic editing

ActionMacWindowsLinux
Cut line (empty selection)CmdXCtrlXCtrlX
Copy line (empty selection)CmdCCtrlCCtrlC
Move line downOption↓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