CLion does not paste the correct snippet from clipboard

两盒软妹~` 提交于 2019-12-10 13:13:16

问题


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?


回答1:


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




回答2:


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.




回答3:


For me works only using middle mouse button for paste.




回答4:


I also answered a duplicate question with my experiences on that topic, hope, this might help you:

There sometimes is a notification when you try to use several shortcuts that this is already taken by some VIM Commands and if you want to disable this. Selecting yes didn't change a thing for me. But using that hint, going to File>Settings>Plugins, disabling IdeaVIM and than restarting did the job.

Fabrizios answered on the duplicate item something, that was partly helpful for me: Ctrl+Shift+V brings up the clipboard history) This still left me with the actual problem (Ctrl+C, Ctrl+V and more not working).



来源:https://stackoverflow.com/questions/32989917/clion-does-not-paste-the-correct-snippet-from-clipboard

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!