Duplicate Selection


Adds a command to Visual Studio to duplicate the current selection. By default, this is bound to Alt+D.

(21) Review
Visual Studio
2015, 2013, 2012, 2010
Download (11,770)
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Reviews (21)
Q and A (3)
Sign in to write a review
Sort by:

by Khurram Shahzad 7 | October 05 2016

Awesome and simple. Thank you!

by Mobit Apps | July 05 2016

Perfect !

by Mikilo | June 09 2016

Oh god, I wonder how it took me years to find this plugin. -_-

by VSG24 | April 07 2016

Very useful. I recommend setting Ctrl+D as the keyboard shortcut.

by FabioGomesCS | November 11 2015


by IjemOfili | October 27 2015

Nice neat extension, does exactly what it says it does. Just go to Tools > Extensions and Updates; then select online in the left panel, and type "Duplicate" in the search box. Duplicate Selection comes up, hit install and restart Visual Studio.
To change the key combo required to duplicate selection or line just go to Tools > Options > Environment > Keyboard, and input your preferred key combo.


by Viveka.Hegade | July 28 2015

saves lot of time. Very good extension

by Janus007 | July 18 2015

Nice one, thank you.
Stopped using R# for one month ago and missed that feature :)

by Taylor42 | July 06 2015

How in the world does Visual Studio get to today without this feature. Thank you for taking the time to make this.

by Emil Nachev BG | June 19 2015

The 1.4 version do not work with VS 2012 and VS 2013
ALT-D showing Debug menu.
Please test 1.5 before new release!

OK. Now 1.5 is works for me. Thank you!

by Dr.Mosko | June 11 2015

not working with VS2013 Express

11/06/2015 06:01:51 - Searching for applicable products...
11/06/2015 06:01:51 - Found installed product - Microsoft Visual Studio Express 2013 for Windows Desktop
11/06/2015 06:01:51 - Found installed product - Global Location
11/06/2015 06:01:51 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.

ctlajoie June 18 2015
| Edit |

As far as I am aware you can't install extensions on Express versions of Visual Studio. This is not my fault.

by viJay2345 | May 22 2015

Its neither working with Alt + D or with new settings of Shift+Alt+down arrow. Restarted VS and re attempted, nothing happens!!

Installed into VS 2013 Ultimate,
mapping scheme was- Visual C# 2005
new shortcut was Global.

ctlajoie June 18 2015
| Edit |

I'm not sure what could be going on here. I can tell you that I've been using this extension myself since I wrote it in 2011 and have never had any issues. Many others have as well.

by Ibsen Torres Rosales | February 19 2015

Perfect!! this is something that i was missing so much. About the binding is true, is binded to other thing, but i don't use it so i could change it and VS now is perfect! Thanks!

by RemcoBoom | February 04 2015

Works excellent on the VS 2012 Pro I had at work under Win7, but not on the VS 2013 Express I have at home under Win8.1. When installing I get the message "This extension is not installable on any currently installed products". Too bad extensions are not supported in Express editions (thanks for the quick answer), because this extension is great. I miss it already.

by Borek Bernard | May 22 2014

Much needed function for Visual Studio (almost any other IDE / editor has this and it's very useful), however, it doesn't work that well for text files with longer lines and word wrapping enabled. For instance, when I "almost" select a multi-line HTML paragraph (for instance, start in the middle of the first line and end in the middle of the last line), this extension thinks that the selection is within a single line and will do the "duplicate withing the line" function. This is technically correct (soft-wrapped lines are still technically a single line) but intuitively incorrect and makes the functionality a bit problematic for word-wrapped editors.

by LitRes LTD | October 17 2013

Can you add vs 2012 for windows 8 support? Thx

ctlajoie October 18 2013
| Edit |

It already supports VS2012.

by Aluan Haddad | September 26 2013

Works exactly as described. Simple, effective, and to the point.

by Miroxlav | September 23 2013

very good but Ctrl+D should be the default shortcut. Besides other applications where Ctrl+D makes duplicates, it also does the same in all MS Office applications (when object is selected - shape, slide image, ...) so why break well-known standards?

ctlajoie September 24 2013
| Edit |

Believe me, I wanted very much to set Ctrl+D as the default binding. I use my extension daily and that is what I bind it to as well.
However Ctrl+D is already bound to something else by default, and setting this extension's default binding to Ctrl+D would cause both of the assigned actions to be invoked. And AFAIK there is no way for me to remove the other binding.

by Jolebas | July 11 2013

Assigned it to ctrl+d so it works like re-sharper.
Love it. Thanks!

by Anton Hesselbom | January 27 2012

Every time I've had to do something with Visual Studio I always get equally surprised when I press Ctrl-D and remember that it doesn't exist in VS.

It doesn't do much, but it does exactly what it says it does, and does it perfectly.

1 - 20 of 21 Items   
Sign in to start a discussion

  • Visual Studio 15?
    1 Posts | Last post October 16, 2016
    • Would be good to get VS 15 support for this! Tried VS 15 and don't want to go back, VS 2015 is a slow memory monster. 
  • Duplicating rows in files of different types
    2 Posts | Last post August 24, 2016
    • Duplicating works fine in *.cs files but not in e.g. *.txt files. Should duplicating work also in *.txt files? Keeping content of a *.txt file the same but changing the type to *.cs makes it work. Could duplicating rows work in any file type?
    • To be more specific, I'm currently using Visual Studio 2015 Update 3 and the problem concerns also duplicating selection - not only duplicating entire rows.
  • Changing key binding doesn't work
    6 Posts | Last post February 25, 2016
    • When I change the key binding to Ctrl+Shift+Down Arrow I get an Object Reference error when I use the shortcut.
    • I'm not able to duplicate the error. Can you give me more information? Like what version of VS you are using, and does it happen only under certain circumstances, or all the time?
    • How about just use ctrl + D? This particular key combo is assigned anyway, is it?
    • Beg pardon above was supposed to read 'ctrl + D  is not assigned any function in VS, is it?
    • do you have this tools for 'microsoft sql server management studio 2014'
    • or does it working on 'sql server management studio 2014' ?