简体   繁体   中英

Visual Studio multiple copy and paste

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?

多次使用 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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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