How do I duplicate a line or selection within Visual Studio Code?
Asked 07 September, 2021
Viewed 740 times
  • 53
Votes

Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Similar to Sublime's cmd+shift+d behaviour)

It's a feature that I use constantly, and am struggling using Visual Studio Code without it.

19 Answer