Reputation: 862
Couldn't find the simple solution on SO, so thought I would add this here for anyone looking in the future.
My symptom was that I could copy and paste within the IJ editor, but not from the editor to another application or from another app to the editor.
This was on Windows 10 with IntelliJ IDEA 14.1.6.
Upvotes: 18
Views: 32716
Reputation: 1386
I fixed this by changing the Keymap from XWin to Windows.
I don't have the any VIM plugins and running an IDE as with admin rights is silly, so the other answers were not relevant to me.
I run my IDE via gWSL, so Windows is the host OS but the IDE is running in Linux.
Upvotes: 1
Reputation: 41
Try to enable "Use national layouts". Settings- Keymap.
For some reason it worked for me.
Upvotes: 1
Reputation: 1031
To make copy/paste through shortcut keys working with Vim Plugin you need to change some settings of Intellij IDE's editor regarding vim emulation, you need to follow these steps for it:
The Shortcuts will start working, happy coding :)
Upvotes: 2
Reputation: 1505
I have found the best solution yet (for me in any case). I have tried everything! Including adding and removing Keymap options. And this is actually where the problem lies...sort of.
When you have the Vim plugin installed, Ctrl + c
and Ctrl + v
is allocated to Vim.
To change that, go to Setting>>Other Settings>>Vim Emulation and set the Handler to IDE. Apply and OK, and Voila!
Upvotes: 16
Reputation: 1181
Same problem drove me completely insane but this https://www.quora.com/Why-doesnt-Ctrl+V-and-Ctrl+C-work-in-IntelliJ-IDEA-14-0-2-on-Linux worked for me:
You might try Ctrl+INS for copy and Shift+INS for paste and see if they work. They are the traditional cut and paste and have been around a lot longer than Ctrl+c/Ctrl+v.
i don't know why, but this worked!
Upvotes: 3
Reputation: 1181
Another solution i've found https://code.google.com/p/android/issues/detail?id=173201 was:
Try to minimize Idea window and move it on the same monitor where is the code that you want to copy and paste it. After this small minimize and move exercise the clipboard starts working.
Ctrl-Shft-V starts working after this for me!!!!!
Upvotes: 1
Reputation: 862
My solution (thanks to a similar issue reported with Android Studio) was to run IntelliJ as an admin.
Steps to always run IntelliJ in admin mode:
Upvotes: 16