Move line up in Visual Studio Code
EditingWindowsAlt+UpAlt↑
MacOption+Up⌥↑
On Windows, press Alt + Up. On Mac, press Option + Up.
Ask your agent
Prompt
In Visual Studio Code, the shortcut to "Move line up" is Alt+Up on Windows and Option+Up on Mac. Check whether anything in my setup overrides it, and if I want a different key, change the binding for me.
Paste into Claude Code and it will do the rest.
Related Visual Studio Code shortcuts
- Move line downAlt+DownAlt↓
- Cut line (empty selection)Ctrl+XCtrlX
- Copy line (empty selection)Ctrl+CCtrlC
- Copy line upShift+Alt+UpShiftAlt↑
- Copy line downShift+Alt+DownShiftAlt↓
- Delete lineCtrl+Shift+KCtrlShiftK
- Insert line belowCtrl+EnterCtrl↵
- Insert line aboveCtrl+Shift+EnterCtrlShift↵
Questions
On Windows, press Alt + Up. On Mac, press Option + Up.