Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy and pasting multiple items to the clipboard in IntelliJ IDEA

Tags:

In IntelliJ IDEA, is it possible to have multiple items in your clipboard and choose which item to paste? What are the keyboard shortcuts?

like image 658
Alexis Avatar asked Nov 11 '09 17:11

Alexis


People also ask

How do you copy multiple items to clipboard?

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.

How do I copy and paste in Intellij?

Copy pathsPress Ctrl+Shift+C to copy the absolute path to the current file. Choose Edit | Copy Path/Reference from the main menu. In the popup that opens, choose what part of the path you want to copy — filename, absolute, or relative path.

How do I get multiple paste options?

Press Win key+V. Click the item you wish to paste. Continue until you've pasted each of the items you want. Next, you can control the items you've pasted.

How do I select multiple instances in Intellij?

Place your caret on the word or text range you want to find and select multiple occurrences of and then use ⌃G (macOS), Alt+J (Windows/Linux) to find and select the next occurrence of the word. This is a case-sensitive search.


2 Answers

Yes, it is possible.

Whilst Ctrl + V is normally used to paste, use Ctrl + Shift + V (IntelliJ Default Key map) which will bring a pop-up of the items in the clipboard to paste.

The default size of the clipboard is 5; it will show the last five things have have been copied. The option to change this is called "Maximum number of contents to keep in clipboard". You can change it quickly by using Ctrl+Shift+A and typing the name of the setting.

like image 114
Alexis Avatar answered Oct 14 '22 13:10

Alexis


Ctrl + Shift + V will bring up the popup like:

Press shift will help you to choose multiple paste items, then cllick OK.

enter image description here

like image 24
JaskeyLam Avatar answered Oct 14 '22 11:10

JaskeyLam