How do you customize the copy/paste behavior in Vi

2020-03-01 10:10发布

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条回答
Rolldiameter
2楼-- · 2020-03-01 10:44

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

查看更多
登录 后发表回答