Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm: disable copy on select text

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?

like image 746
kev Avatar asked Dec 08 '22 21:12

kev


2 Answers

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

PyCharm Settings

like image 59
Ian Avatar answered Dec 22 '22 15:12

Ian


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.

like image 36
Saim Raza Avatar answered Dec 22 '22 15:12

Saim Raza