开发者

Visual Studio multiple copy and paste

开发者 https://www.devze.com 2023-02-15 09:40 出处:网络
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

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 i开发者_开发技巧tems in the copy memory and then to paste them individually?


Use CTRL-Shift-V multiple times (until you have the text you want)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消