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
- Outdent lineCtrl+[Ctrl[
- Go to beginning of fileCtrl+HomeCtrlHome
- Go to end of fileCtrl+EndCtrlEnd
- Quick FixCtrl+.Ctrl.
- Rename SymbolF2F2
Questions
On Windows, press Alt + Up. On Mac, press Option + Up.
Press Alt + Up.
Press Option + Up.