Over a million developers have joined DZone.

Pasting Content from Previous Copy or Paste Actions in IntelliJ IDEA

· Java Zone

Learn more about the advantages of moving from a monolithic to microservices architecture.  Brought to you in partnership with IBM.

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.


From Idea to Application gives you the architecture to quickly build, manage and run a range of applications (web, mobile, big data, new smart devices, etc.) on an open-standard, cloud-based platform. See why developers are using IBM Bluemix. Brought to you in partnership with IBM.


Published at DZone with permission of Hubert Klein Ikkink, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}