How do you customize the copy/paste behavior in Visual Studio 2008?
-
09-06-2019 - |
Question
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?
Solution
Go into Tools > Options > Text Editor > HTML > Miscellaneous and uncheck "Auto ID elements on paste in Source view"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow