如何在Visual Studio 2008中自定义复制/粘贴行为? [英] How do you customize the copy/paste behavior in Visual Studio 2008?

查看:134
本文介绍了如何在Visual Studio 2008中自定义复制/粘贴行为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio 2008中自定义复制/粘贴行为?

How do you customize the Copy/Paste behavior in Visual Studio 2008?

例如,我创建了一个新的< div id = MyDiv>< / div> ,然后将其复制并粘贴到同一文件中。

For example I create a new <div id="MyDiv"></div> and then copy and paste it in the same file.

VisualStudio粘贴 < div id = Div1>< / div> 而不是我复制的原始文本。

VisualStudio pastes <div id="Div1"></div> instead of the original text I copied.

更令人沮丧当我尝试复制一组相关的div时,我想复制/粘贴几次,并且只更改id的一部分。

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?

推荐答案

进入工具>选项>文本编辑器> HTML>其他并取消选中粘贴在源代码视图中的自动ID元素

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

这篇关于如何在Visual Studio 2008中自定义复制/粘贴行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆