Pycharm: disable copy on select text

2019-07-25 09:49发布

Scenario: I am trying to copy something into Pycharm. When accidentally selecting something (even an empty line) in Pycharm, it gets copied and overwrites the buffer. Pasting then pastes the empty line (or whatever got selected) instead of what I copied originally.

Is it possible to avoid this behaviour?

3条回答
SAY GOODBYE
2楼-- · 2019-07-25 10:11

If you launch Pycharm using XServer, then the following worked for me (ref):

After experiencing the same problem on VcXsrv X server on Windows (which is a fork of Xming), the solution was to cancel the "Clipboard my use primary selection" option in VcXsrv tray icon context menu.

From the youtrack issue it looks like it was always an X server configuration problem.

I have also disabled Settings | Tools | Terminal | Copy to clipboard of selection option.

查看更多
Root(大扎)
3楼-- · 2019-07-25 10:17

To get the history of the clipboard press Ctrl + Shift + V or go to Edit > Paste from History,

This opens a dialog with previous copies which looks like this,

clipboard history PyCharm

from the top box, select the relevant copy and press ok.

查看更多
唯我独甜
4楼-- · 2019-07-25 10:27

Press Ctrl+Alt+S to open the settings. Type "copy" into the search bar. Disable this checkbox:

PyCharm Settings

查看更多
登录 后发表回答