Can you increase the paste buffer size in IntelliJ IDEA

Intellij IdeaIde

Intellij Idea Problem Overview


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.

Intellij Idea Solutions


Solution 1 - Intellij Idea

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 - Intellij Idea

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 - Intellij Idea

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

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAndrew MView Question on Stackoverflow
Solution 1 - Intellij IdeaArmandView Answer on Stackoverflow
Solution 2 - Intellij IdeaSergeyView Answer on Stackoverflow
Solution 3 - Intellij Ideasendon1982View Answer on Stackoverflow