Visual Studio 多次复制和粘贴
在编辑和修复代码时,我认为有时能够一次粘贴多个内容会很好。例如,我正在修复一些 WCF Rest 代码,有时想粘贴“Xml”,有时想粘贴“Json”。这些很容易键入,但键盘快捷键要容易得多。
因此,是否可以在复制内存中拥有多个不同的项目,然后单独粘贴它们?
While editing and fixing up code I have thought that sometimes it would be nice to be able to paste more than one thing at a time. For instance I was fixing up some WCF Rest code and I wanted to paste "Xml" sometimes and "Json" other times. These are easy to type, but a keyboard shortcut is much easier
Thus, is it possible to have multiple different items in the copy memory and then to paste them individually?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
多次使用 CTRL-Shift-V(直到获得所需的文本)
Use CTRL-Shift-V multiple times (until you have the text you want)
对于那些像我一样正在寻找它的人。
您要执行的操作的名称是Edit.CycleClipboardRing。
在我的VS2008中,它被分配给按键Ctrl+Shift+Insert。只需在“工具”->“选项...”->“键盘”中更改为 Ctrl+Shift+V。
For the ones who are looking for it, as I was.
The name of the action you want to perform is Edit.CycleClipboardRing.
In my VS2008, it was assigned to the keys Ctrl+Shift+Insert. Just changed to Ctrl+Shift+V in Tools->Options...->Keyboard.
当我想在源文件中重复输入文本时,我会键入一次,选择它并将其拖放到“工具箱”工具窗口中(如果需要,您甚至可以重命名代码片段名称)。
然后当我想使用它时,我将它从工具箱工具窗口拖放到源文件中。
When there is text that I want to repeatedly enter in a source file, I type it once, select it and drag and drop it to the Toolbox tool window (you can even rename the snippet name if you want).
Then when I want to use it, I drag and drop it from the toolbox tool window to the source file.
我已经使用 Clipx 多年了。您可以使用 ctrl-shift-v 访问旧的剪贴板项目。
另外,这适用于所有程序:您可以在记事本或 Outlook 中复制源代码片段。
I've been using Clipx for years. You can access your older clipboard items with ctrl-shift-v.
Plus this works with all programs: you can copy your source snippets in notepad or outlook.
我更喜欢使用 FlyCut。它显示最近 30 个结果和应用程序名称以及您复制内容的位置。有一个选项可以处理密码字段中的
复制
。I prefer using FlyCut. It shows the last 30 results and app name as well from where you've copied the content. There's an option for handling
copy
from password fields.