Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut for duplicating a line of code in Visual Studio 11 [duplicate]

Is there any way to duplicate a line of code with a keyboard shortcut in the new Visual Studio 11 ?
I had a little macro set up in the previous version but according to this article, the macros are discontinued.

Is there any workaround I could use?

like image 629
ScarletAmaranth Avatar asked Mar 27 '12 17:03

ScarletAmaranth


2 Answers

Check this extension:

  • Duplicate Selection extension : http://visualstudiogallery.msdn.microsoft.com/830a6482-3b8f-41a8-97b5-b9c581e5ad8b

Duplicate the line without touching the clipboard (as Notepad++ does).

like image 127
nergeia Avatar answered Oct 21 '22 11:10

nergeia


Ctrl+C and Ctrl+V

Try it...

like image 25
KMoraz Avatar answered Oct 21 '22 11:10

KMoraz