Can you increase the paste buffer size in IntelliJ IDEA

The ctrl-shift-v paste buffer in IntelliJ is great, but only holds 5 items. Is it possible to increase the size of this buffer?

Similar to this comment on another question

Searching within IntelliJ settings hasn't shown up anything, neither has google.


Solution 1:

Yes

Go to:

File > Settings > Editor > Limits > Maximum number of contents to keep in clipboard

...and change the number.

Update for IntelliJ 14 and Android Studio 1.2
In new versions, it appears under a slightly different level in the menu...

Go to:
File > Settings > Editor > General
Then scroll down to find:
Limits > Maximum number of contents to keep in clipboard

If they decide to move it again, you can always just search for "max clipboard", that is:

  • Windows: Ctrl+shift+a
  • Mac: +shift+a

Then type "max clipboard" in the dialog that comes up.

enter image description here

Solution 2:

For IntelliJ IDEA 2020.1 it can be done by edit properties in Registry. Goes to Help > Find Action and type Registry

registry

search for clipboard

Solution 3:

Goes to File > Settings > Editor > General And then find Limits section

enter image description here