Alexis
Alexis

Reputation: 1375

Copy and pasting multiple items to the clipboard in IntelliJ IDEA

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

Upvotes: 31

Views: 12214

Answers (4)

Gibolt
Gibolt

Reputation: 47127

On Windows, use CtrlShiftV and on Mac use ShiftV to see your clipboard history.

Change Stored History Size

Click ShiftShift, type Maximum number of contents to keep in clipboard, and then edit the value in the dialog.

enter image description here

To manually find the setting, open: Preferences -> Editor -> General and then in the Limits section of the main General page, increase Maximum number of contents to keep in clipboard. I changed mine to 50.

enter image description here

Alternatively, copy and paste multiple lines at once

You can select adjacent line content, random line/positions etc. with multi-caret selection.

Read how to here

enter image description here

Upvotes: 7

AKS
AKS

Reputation: 53

to increase clipboard history max item: shift + shift search for 'registry' click on 'Registry...' search for 'clipboard.history.max.items' increase it's value

Upvotes: 3

Alexis
Alexis

Reputation: 1375

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.

Upvotes: 45

JaskeyLam
JaskeyLam

Reputation: 15755

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

Upvotes: 5

Related Questions