问题
Every time I try to copy and paste a web url into PyCharm, I even tried Paste Simple, I see nothing. Is there any force that could potentially block out people who try to paste information in? I really have no clue what's going on.
回答1:
Most likely you installed the IdeaVim support when you first installed PyCharm. To un-install the plugin, go to:
File --> Settings --> Plugins
and uncheck the IdeaVim entry.
You will need to restart PyCharm. After I did this, I could easily copy and paste via CTRL + C/X/V from anywhere into PyCharm.
回答2:
PyCharm version 4.04 does not allow me to paste text from a source (like a text editor, url, document) into a file open in PyCharm. I can cut and paste between two files open in PyCharm. Reverting back to PyCharm version 4.01 returned the expected paste operation for me.
Running PyCharm on windows 8
回答3:
Similar here.. Windows 7, Pycharm community edition 4.5.4. Can copy-paste from pycharm to outside apps. But when doing reverse, there are inconsistent behaviors.
From notepad (or even this editor windows where I am typing this), I can copy to pycharm. However, if I copy any other text (say, an article from wikipedia), I cannot paste in to pycharm. Clicking on paste does absolutely nothing.
So current solution: Copy something ... paste to notepad. Then copy from notepad and paste to pycharm.
回答4:
Looks like just a bug. I use 2016.1 and restart helps.
回答5:
SW VER :
PyCharm 2018.3.3 (Community Edition)
Build #PC-183.5153.39, built on January 9, 2019
JRE: 1.8.0_152-release-1343-b26 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
- file----->setings----->editor----->Vim Emulation:
- all the copy/paste/cat keywords (Ctrl C/V/X) are in "Vim" in Handler columns. change it to "IDE".
- Apply---->OK.
it will start working immediately.
回答6:
This happened to me as well, I fixed it after disabling antivirus safe search in the browser and restarted Pycharm.
回答7:
When the copy/ paste shortcuts are failed, I found Execute Selection in Console (alt + shift + E) is useful.
回答8:
I have just learned that using the python browser allows you to paste too the pi only (my experience). not from the desktop to pi. I assume it is because their are two different platforms running on the same screen. when i'm on full screen with the pi on my desktop, i can't (ALT Tab) to the desktop. But i can vice versa. hope this helps. i have only just started to learn pi and programming etc
回答9:
IdeaVim plugin doesnot allow to to use shortcut keys properly as it has different configuration for shortcut keys. So uninstalling IdeaVim and then followed by restarting PyCharm works out well.
- To do the above :- File -> Settings -> Plugins -> (search for IdeaVim) Uninstall it or disable it
- It will ask for restart, so restart PyCharm
来源:https://stackoverflow.com/questions/28144352/how-do-you-copy-and-paste-in-pycharm