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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With