Reputation: 1375
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
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.
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.
You can select adjacent line content, random line/positions etc. with multi-caret selection.
Upvotes: 7
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
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
Reputation: 15755
Ctrl + Shift + V will bring up the popup like:
Press shift will help you to choose multiple paste items, then cllick OK.
Upvotes: 5