Ctrl + V and Ctrl + C doesn't work in Intellij IDEA 14.0.2

60,995

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.

how-to-enable-ctl-v-and-ctv-c-for-copy-paste-in-idea

Solution 2

  1. You can disable vim from the tools menu (instead of uninstalling it)
  2. 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

Share:
60,995

Related videos on Youtube

gogobebe2
Author by

gogobebe2

Updated on September 18, 2022

Comments

  • gogobebe2
    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): enter image description here

    I looked in setting and found keymap then typed copy in the search bar and this is what came up: enter image description here

    • saptarshi nag
      saptarshi nag over 9 years
      Click 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
      Yonatan Simson over 7 years
      I had this problem when working in a different language. All I had to do was revert back to English.
  • Chris Bedford
    Chris Bedford over 8 years
    vim is awesome, spread the word ;^) good tip on console.. that always puzzled me.
  • Jinna Balu
    Jinna Balu almost 8 years
    saved 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
    Delorean about 7 years
    Please post instructions instead of links to instructions. Links can stop working in the future.
  • luboskrnac
    luboskrnac about 7 years
    Wow, this really works
  • Alex Forbes
    Alex Forbes over 6 years
    This 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
    Fabby over 5 years
    Welcome to Ask Ubuntu! ;-) Could you please edit your answer and explain why OP should install a PPA, what it does, how it works, ... ;-)
  • rouble
    rouble over 5 years
    someone please make this the default behavior. almost switched to vs code because of this.
  • mal
    mal about 5 years
    Thanks! 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
    Ryan Shillington over 4 years
    CTRL-v still doesn't work when searching. ie. press / to search and then press CTRL-V. You get just a caret (^). Any ideas?
  • IcyBrk
    IcyBrk over 4 years
    In IntelliJ 2019.2.1 it is under Settings -> Editor