DEV Community

Discussion on: VS Code Shortcuts That I Would Teach Myself if I Had a Time Machine With Limited Fuel

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan • Edited

My favorites:

  • Ctrl+L. Highlight the current line. Press it N times to highlight the next N lines.
  • Alt+Up/Down. Move an entire line of code (or the current selection) up/down. No more cutting/pasting.
Collapse
 
pzelnip profile image
Adam Parkin

The move line up/down is like my #1 used hotkey.

The other one I use a lot that's similar is SHIFT+ALT+up/down for duplicating the current line above or below.