简体   繁体   English

在 Visual Studio 2019 中是否可以进行多插入符号复制和粘贴?

[英]In Visual Studio 2019 is there a way to multi caret copy and paste?

In Other IDEs I can for example place a caret at the end of this.例如,在其他 IDE 中,我可以在其末尾放置一个插入符号this. on each line and then highlight and copy the contents of the rest of the line and then paste it.在每一行上,然后突出显示并复制该行的 rest 的内容,然后粘贴。

At first it looks like this起初它看起来像这样

this.emailaddr = 
this.firstname = 
this.lastname = 

Then after the paste it looks like this然后粘贴后是这样的

this.emailaddr = emailaddr = 
this.firstname = firstname = 
this.lastname = lastname = 

Since each caret is now at the end of each line I simply back space 2 times and add ;由于每个插入符号现在位于每行的末尾,我只需退格 2 次并添加; to finish完成

this.emailaddr = emailaddr;
this.firstname = firstname; 
this.lastname = lastname;

However In Visual Studio I get this when I paste但是在 Visual Studio 中,当我粘贴时我得到了这个

            this.emailaddr = emailaddr =
firstname =
lastname =

            this.firstname = emailaddr = 
firstname = 
lastname = 

            this.lastname = emailaddr = 
firstname = 
lastname = 

Is this just an issue with Visual Studio code copying the contents to only one clipboard.这只是 Visual Studio 代码将内容复制到一个剪贴板的问题。 Why in other IDE's each caret has its own memory for copy?为什么在其他 IDE 的每个插入符号都有自己的 memory 进行复制? Is there a setting to configure in Visual Studio?是否有要在 Visual Studio 中配置的设置?

There is an extension on the marketplace that does this called Multiple Carets Booster市场上有一个扩展名为Multiple Carets Booster

https://marketplace.visualstudio.com/items?itemName=VaclavNadrasky.MultiCaretBooster https://marketplace.visualstudio.com/items?itemName=VaclavNadrasky.MultiCaretBooster

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM