How do you disable the annoying automatic renaming of id in Visual Studio when you copy paste? For example, if you have
<p id="myID"></p>
and you copy and paste it in the same file, Visual Studio renames it to
<p id="P1"></p>
I want it to highlight the duplicate id but not change it automatically.
Thanks
See here – ajp15243
Step1: Go to the menu bar and click on 'Tools' and then 'Options'.
Step 2: On the popup screen than appears there is a little checkbox in the lower left corner that says 'Show All Settings'. Make sure that is selected.
Step 3: Expand the 'TextEditor' option and expand the 'HTML' option.
Step 4: Click on 'Miscellaneous' and untick the option 'Auto ID elements on paste in Source view'.
Step 5: Click OK and now when you paste any html content or code with the same ID values as what is in your project Visual Studio will not rename the IDs.
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