7

From the hundreds of Visual Studio options, is there one to disable the way VS replace the IDs in markup when copy&paste from other control?

Almost always only need to change a few characters but VS thinks he is being smart replacing all the ID

genesis
  • 50,477
  • 20
  • 96
  • 125
Eduardo Molteni
  • 38,786
  • 23
  • 141
  • 206
  • 1
    I'm sure this isn't the answer you want (thus its a comment), but a quick undo will revert your paste to the original text in your clipboard. This has been a source of great frustration to me as well. I'd love to see good permanent answers to it. – Sam Aug 26 '11 at 19:16
  • Sam: good to know that too, but the permanent version is better! See below – Eduardo Molteni Aug 26 '11 at 19:22

1 Answers1

14

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

source: How do you customize the copy/paste behavior in Visual Studio 2008? but in 2010 it is the same

Community
  • 1
  • 1
Pleun
  • 8,856
  • 2
  • 30
  • 50