Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode multiple copy-paste?

Is there any feature similar to the one found in Visual Studio for pasting from the clipboard history?
Its a nice feature that increases productivity in some circumstances.
For example, if I use ctrl + c many times for several texts, then I can use a shortcut to paste all these texts.
In Visual Studio, we can use ctrl + shift + v.

like image 780
danilo Avatar asked Jan 28 '19 18:01

danilo


People also ask

How do you paste multiple times in VS Code?

Instead of paste the code with the key combination Ctrl+V, paste them using Ctrl+Shift+V. A dropdown appears close to the cursor with the list of your clipboard history from Visual Studio. Now you can click directly to an item or you can use the number of the line that you want to paste. That's all!

How do you copy multiples in VS Code?

“duplicate a line multiple times in vscode” Code Answer's On Windows: Shift + Alt + Up/Down. On Mac: Shift + Option + Up/Down. On Ubuntu: Ctrl + Shift + Alt + Up/Down.

How do you copy and paste multiple things at once?

Copy and paste multiple items using the Office ClipboardSelect the first item that you want to copy, and press CTRL+C. Continue copying items from the same or other files until you have collected all of the items that you want. The Office Clipboard can hold up to 24 items.


2 Answers

The best plugin I found: Multiple clipboards for VSCode.
https://marketplace.visualstudio.com/items?itemName=slevesque.vscode-multiclip

It looks better than the usual ctrl+shift+v I was looking for.
In addition to ctrl+shift+v you can use ctrl+shift+c to Merge-Copy.
And ctrl+shift+x to Merge-Cut.
Select clipboard to paste (ctrl+alt+v).
Paste and cycle through clipboard items (ctrl+shift+v).

like image 117
danilo Avatar answered Sep 29 '22 13:09

danilo


I found this one, it's really simplistic. One clipboard history, no configuration, ctrl+shift+v shows the dropdown from which you can pick your paste.

https://marketplace.visualstudio.com/items?itemName=Anjali.clipboard-history

like image 38
mimo Avatar answered Sep 29 '22 13:09

mimo