Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Visual Studio automatic id renaming

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

like image 666
problemo Avatar asked Jun 03 '13 19:06

problemo


1 Answers

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.

like image 78
problemo Avatar answered Oct 05 '22 17:10

problemo