Ctrl + V and Ctrl + C doesn't work in Intellij IDEA 14.0.2
Solution 1
I had this problem and it was driving me absolutely insane.
If you want to keep using the vim plugin, and have ^c and ^v work for copy / paste like it does in other applications, then you need to go to your settings, and select Other Settings / Vim Emulation (as shown below).... Then make sure that both ^c and ^v are set to be handled by the IDE (not Vim!) and everything should work fine.
Solution 2
- You can disable vim from the tools menu (instead of uninstalling it)
- For those who actually use vim (which is awesome) - there is an issue with copying from the run console and other outputs (this is how I stumbled onto this question), ctrl-c doesn't work there. The issue is that vim is wrapping those panels too, so you can just highlight and press 'y' :)
Solution 3
From File -> Settings -> Plugins search for ideavim plugin. When found click on it. On the right panel you will see an Uninstall button. If you click it, you can uninstall the plugin without uninstalling all of IntelliJ IDEA.
Solution 4
Either disable the ideavim plugin, or use the Vim shortcuts.
The Vim shortcuts are d
, y
, P
/p
in command mode
to cut, copy and paste before/after the cursor. This clipboard is different than the clipboard in your OS. If you use Shift+Delete
, Ctrl+Insert
and Shift+Insert
, the cut, copied or pasted content will be placed to the system's clipboard.
See http://vim.wikia.com/wiki/Copy,_cut_and_paste. (You can use movement command (like w
) or the mouse to move the cursor around while selecting.)
Solution 5
You may try Ctrl+Insert as Ctrl+C could be in conflict with the Vim editor plugin
Related videos on Youtube
gogobebe2
Updated on September 18, 2022Comments
-
gogobebe2 over 1 year
I can't copy and paste code in Intellij. I've been googling for a couple hours now. Every forum where there is a solution does not work.
Ctrl+X works. Ctrl+Z works. Ctrl+V does not work. Ctrl+C does not work.
I'm using the latest version of Intellij Idea (14.0.2), I'm running Linux lite - posted here because Linux lite is based off Ubuntu and it will be similar.
Here is what happens when I right click (I don't have enough rep to post images apparently):
I looked in setting and found keymap then typed copy in the search bar and this is what came up:
-
saptarshi nag over 9 yearsClick on the 'Edit' option and see if there come options like 'copy' and 'paste' or not.If there are 'copy' and 'paste' options,use them.See and report if they work or not.
-
Yonatan Simson over 7 yearsI had this problem when working in a different language. All I had to do was revert back to English.
-
-
Chris Bedford over 8 yearsvim is awesome, spread the word ;^) good tip on console.. that always puzzled me.
-
Jinna Balu almost 8 yearssaved my day. works perfect in windows environment too. When I installed IntilliJ I installed with all plugins. I got installed with the ideavim too. If we uninstall this plugin it works perfect.
-
Delorean about 7 yearsPlease post instructions instead of links to instructions. Links can stop working in the future.
-
luboskrnac about 7 yearsWow, this really works
-
Alex Forbes over 6 yearsThis was it for me, although was having trouble with Ctrl+B, I still prefer to keep Ctrl+V for visual mode. Feel silly now as the first time you use a shortcut it notifies you that the vim plugin is handling it.
-
Fabby over 5 yearsWelcome to Ask Ubuntu! ;-) Could you please edit your answer and explain why OP should install a PPA, what it does, how it works, ... ;-)
-
rouble over 5 yearssomeone please make this the default behavior. almost switched to vs code because of this.
-
mal about 5 yearsThanks! Why did I have so much trouble finding this very straight forward information?? Most answers seem to involve remapping the traditional keys or deleting the vim plugin.
-
Ryan Shillington over 4 yearsCTRL-v still doesn't work when searching. ie. press
/
to search and then press CTRL-V. You get just a caret (^). Any ideas? -
IcyBrk over 4 yearsIn IntelliJ 2019.2.1 it is under Settings -> Editor