Jeff Neet
Jeff Neet

Reputation: 862

IntelliJ IDEA 14 Copy and Paste not working with other applications

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

Answers (8)

ckeeney
ckeeney

Reputation: 1386

I fixed this by changing the Keymap from XWin to Windows.

enter image description here

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

Try to enable "Use national layouts". Settings- Keymap.

For some reason it worked for me.

Upvotes: 1

pkjsoccer
pkjsoccer

Reputation: 19

PyCharm - Setting>>Vim Emulation Set - Control + V/P/A to IDE

Upvotes: 0

Hassan Jamil
Hassan Jamil

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:

  1. Click Menu File > Settings... (or use shortcut Ctrl + Alt + S)
  2. Select Editor -> Vim Emulation and find the shortcuts and change their Handler column value to IDE as shown in the screenshot below.

enter image description here

The Shortcuts will start working, happy coding :)

Upvotes: 2

onmyway
onmyway

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!

enter image description here

Upvotes: 16

WebComer
WebComer

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

WebComer
WebComer

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

Jeff Neet
Jeff Neet

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:

  1. Right-click on IntelliJ icon in start menu search (or wherever you started it) -> Open file location
  2. Right-click IntelliJ shortcut -> Open file location (yes, again to get to the .exe, not the shortcut.)
  3. Right-click idea.exe -> Properties
  4. Compatibility tab -> check Run this program as an Administrator
  5. Right-click idea64.exe -> Properties (if you run IntelliJ in 64 bit mode)
  6. Compatibility tab -> check Run this program as an Administrator

Upvotes: 16

Related Questions