gpt4 book ai didi

visual-studio-2010 - 禁用 Visual Studio 自动 id 重命名

转载 作者:行者123 更新时间:2023-12-03 20:16:45 24 4
gpt4 key购买 nike

复制粘贴时如何禁用 Visual Studio 中烦人的 id 自动重命名?例如,如果您有

<p id="myID"></p>

然后将其复制并粘贴到同一个文件中,Visual Studio 将其重命名为
<p id="P1"></p>

我希望它突出显示重复的 id 但不自动更改它。

谢谢

最佳答案

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.

关于visual-studio-2010 - 禁用 Visual Studio 自动 id 重命名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16904591/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com