← Useful Tips
VS CodeVscode

Alt + ↑ / ↓: Move a line of code up or down

Use Alt + ↑ / ↓ to move a line of code up or down. It keeps your hands on the keyboard while navigating large codebases.

Alt + ↑ / ↓

Why it helps

Use Alt + ↑ / ↓ to move a line of code up or down. It keeps your hands on the keyboard while navigating large codebases.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
Alt + ↑ / ↓: Move a line of code up or downAlt + ↑ / ↓move a line of code up or downhow to move a line of code up or downVS Code move a line of code up or down

Related tips