Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CLion does not paste the correct snippet from clipboard

Tags:

clion

while having used Java and PHP most of the time in my programming "carreer", I am now trying to learn C++ more in-depth. For that, I am using CLion as my IDE - mostly because I am very familiar with phpStorm and IntelliJ IDEA and I don't want to "learn" a new IDE in addition to learning a new language.

Now, I have hit the problem, that CLion does not take my current Clipboard content when pressing Ctrl + V. The snippet was copied from the Browser (Firefox 41.0.1) and it neither works with code copied by Ctrl + C nor with code copied by rightclicking and then selecting Copy.

It seems like the IDE has problems with getting the Clipboard content from the outside, because when copying and pasting inside the IDE, it works perfectly fine. Only when trying to paste something from another program, it ignores it and pastes something that I copied inside the IDE before.

Do you have any clues on how to fix that? Is it a bug or did I mess up something in my settings or somewhere else?

like image 289
Niklas S. Avatar asked Oct 07 '15 10:10

Niklas S.


3 Answers

Clearing "Paste from History" (Ctrl + Shift + V) worked for me.

like image 144
fraillt Avatar answered Sep 18 '22 21:09

fraillt


Same issue with Chrome version 47.0.2526.106.

It seems like that the problem happens when more then one Clion project window is open. After resetting the clion clipboard the problem will not occur during the session again. But after starting a new Clion session the bug is back in place.

Added on 27th december: It also happens when you are only working with one window and stored 5 values in the clion clipboard.

like image 28
Dataku Avatar answered Sep 18 '22 21:09

Dataku


For me works only using middle mouse button for paste.

like image 45
GreenEkatherine Avatar answered Sep 17 '22 21:09

GreenEkatherine