views:

678

answers:

1

How do you customize the Copy/Paste behavior in Visual Studio 2008?

For example I create a new <div id="MyDiv"></div> and then copy and paste it in the same file.

VisualStudio pastes <div id="Div1"></div> instead of the original text I copied.

It is even more frustrating when I'm trying to copy a group of related div's that I would like to copy/paste several times and only change one part of the id.

Is there a setting I can tweak to change the copy/paste behavior?

+5  A: 

Go into Tools > Options > Text Editor > HTML > Miscellaneous and uncheck "Auto ID elements on paste in Source view"

DamienG
Brian Boatright