DEV Community

Discussion on: How to code faster - VS Code edition

Collapse
 
dedsyn4ps3 profile image
Ed Rutherford

Nicely Done!

One extremely convenient keyboard shortcut I use all the time in VSCode is an alternate of one you list above. Instead of moving a line up or down using alt+up/down, you can add the shift key to that button combination to actually duplicate the line.

Even better, if you're working with a React component that you'd like to duplicate quickly (like I do 😄), you can highlight the entire component and press alt+shift+down to paste a duplicate immediately below the selection!