Visual Studio – Shortcut key to Duplicate a Line

To duplicate the current line of code in Visual Studio, you simply use the following shortcut key:

Ctrl + C + V

Yeah, that’s it. It is really simple, right? You do not need to install any more 3rd party duplicate extensions in your Visual Studio, such as Duplicate Selection.

We have tested the above shortcut key in Visual Studio 2017, 2015, 2013, and 2012 and it works as expected.