12

I am having difficulty getting Ctrl+V to paste code in CLion (I am using version 1.1.1 for Windows). When I try to paste code copied using Ctrl+C from e.g. a website or another program, it only seems to work occasionally. Usually it pastes a piece of text that was not the most recently copied.

I use other JetBrains IDEs (IntelliJ IDEA, PyCharm) and have never had any problems with something so basic.

Has anybody else encountered this problem and found a solution to it?

Fabrizio
  • 7,603
  • 6
  • 44
  • 104
Paul Boddington
  • 37,127
  • 10
  • 65
  • 116
  • 1
    In my case, I've replaced my current version with the latest EAP and the problem went away. – maddouri Nov 02 '15 at 15:37
  • Please look at my answer here:[CLion does not paste the correct snippet from clipboard](https://stackoverflow.com/a/47527213/3914914) – GreenEkatherine Nov 30 '17 at 09:06
  • Does this answer your question? [CLion does not paste the correct snippet from clipboard](https://stackoverflow.com/questions/32989917/clion-does-not-paste-the-correct-snippet-from-clipboard) – Cadoiz Sep 20 '21 at 09:04

2 Answers2

11

I had the same problem and this is the way I fixed it:

  • Ctrl+Shift+V (brings up the clipboard history)
  • Delete all entries
  • Recopy what you wanted to paste from outside CLion
  • Try pasting again

Let me know if it didn't work for you so I can see if there is some step you are missing. Hope this helps!

Fabrizio
  • 7,603
  • 6
  • 44
  • 104
jcflinn14
  • 176
  • 1
  • 5
  • 1
    It seems to work, but it's hard to test properly, as the problems were so erratic in the first place. Thanks for your help. – Paul Boddington Nov 03 '15 at 16:25
  • @PaulBoddington Glad it helped! And yea, I'm sure there is a better way, but this is the only method I discovered. – jcflinn14 Nov 04 '15 at 21:31
  • Is there any way to avoid having to do this, aside from switching to an IDE other than CLion? – Nic Jun 20 '16 at 02:02
  • 1
    Also, they claim that this issue is fixed; I just experienced it, and it's not. – Nic Jun 20 '16 at 02:07
1

I had the same problem and this is the way I fixed it: Go to: Settings > plugins and disable 'ideaVim' plugin

Arash Yazdani
  • 302
  • 2
  • 12