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?
Go into Tools > Options > Text Editor > HTML > Miscellaneous and uncheck "Auto ID elements on paste in Source view"
In Visual Studio 2019
the new location isTools > Text Editor > ASP.NET Web Forms
and Check Format HTML on paste.
So now it is possible to efficiently duplicate sequential ID codes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With