Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to sync Intellij Idea clipboard with the window's clipboard?

I am using Intellij idea IDE. Whenever I try to copy and paste any code from my browser to the IDE, it is not being pasted. Actually the last selection in the IDE is pasted every time. However if I paste it in any other application like notepad, it works fine.

What do I need to do?

like image 830
Prashant Avatar asked Jul 08 '15 05:07

Prashant


2 Answers

I found the same problem with IntelliJ 14.1.4 on Windows 7. I copy something external, use Ctrl+V in the IDE, but the last clipboard from the IDE is pasted instead.

I was able to resolve this by clearing the IDE clipboard, you can do this with Ctrl+Shift+V which opens the Paste from History dialog, here you will see all the IDE clipboard entries, you can click on each one and click Delete. I cleared all the entries, then copied again from the other application.

Now Ctrl+V in the IDE should give you the external clipboard item.

like image 190
mikeapr4 Avatar answered Nov 19 '22 01:11

mikeapr4


I solved this problem by restarting intellij with the `invalidate cache\restart" menu option. Prior to restarting anything I'd had copied to the clipboard outside the IDE I couldn't paste, but afterward I could paste. I didn't investigate if just restarting would have worked. The menu option provides a nice way of closing all intellij windows at once on Windows.

like image 37
Bjorn Avatar answered Nov 19 '22 02:11

Bjorn