How do you customize the copy/paste behavior in Visual Studio 2008?

这一生的挚爱 提交于 2019-11-30 03:11:00

问题


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?


回答1:


Go into Tools > Options > Text Editor > HTML > Miscellaneous and uncheck "Auto ID elements on paste in Source view"



来源:https://stackoverflow.com/questions/67209/how-do-you-customize-the-copy-paste-behavior-in-visual-studio-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!