← Useful Tips
VS CodeVscode

Shift + Alt + ↑ / ↓: Duplicate a line of code

Use Shift + Alt + ↑ / ↓ to duplicate a line of code. It keeps your hands on the keyboard while navigating large codebases.

Shift + Alt + ↑ / ↓

Why it helps

Use Shift + Alt + ↑ / ↓ to duplicate a line of code. 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
Shift + Alt + ↑ / ↓: Duplicate a line of codeShift + Alt + ↑ / ↓duplicate a line of codehow to duplicate a line of codeVS Code duplicate a line of code

Related tips