Loading...

Wednesday, March 13, 2013

Pasting Content from Previous Copy or Paste Actions in IntelliJ IDEA

If we copy or cut a text selection in IntelliJ IDEA we can paste it directly from the clipboard with Cmd + V (Ctrl + V for Windows or Linux), just like in any other application. But we can also paste content from previous copy or cut actions. IntelliJ IDEA keeps track of our last 15 text selections that were placed on the clipboard. With the shortcut key Cmd + Shift + V (Ctrl + Shift + V for Windows or Linux) we can select an item from the clipboard buffer. IntelliJ IDEA opens a dialog window with all items in the buffer:


We can select the content we want to paste using the cursor keys, type in the number or start typing the first letters of the content. We select the OK button to paste the content in our editor:


IntelliJ IDEA 12 is used for this post.

4 comments:

Anonymous said...

Nice post. I prefer the use of an clipboard manager for the OS. (for linux: Clipit or Parcellite)

Eugene Beletskiy said...

I have only 5 items tracked, where can I change settings to keep up to 15 as you mentioned in the post? Thank you.

Hubert Klein Ikkink said...

@Eugene Beletskiy: You can change it in Preferences | Editor. You will see a section Limits and in there is the option "Maximum number of contents to keep in clipboard".

Eugene Beletskiy said...

@Hubert, got it, thanks a lot.

Post a Comment