Disable automatic copy on selection
已回答
How can I disable the automatic copy to the clipboard when selecting text in the editor?
A double click on a word in the editor copies it automatically to the clipboard, which makes editing the code rather difficult.
This happens when selecting using the mouse or the keyboard.
请先登录再写评论。
Do you mean in terminal? See the Settings (Preferences on macOS) | Tools | Terminal | Copy to clipboard on selection option.
After further investigation, it appear that it is cause due to the fact that I run IntelliJ from a Docker image, which resides on a Linux machine.
Any idea how to disable this? I know this is primarily a Linux issue, but I was wondering if anyone have an idea.
Looks like it is an expected behaviour of X11's clipboard system: https://superuser.com/a/180115
I Windows, you can fix this horrible design flaw like this:
Now Rider will stop ruining your clipboard selection. Phew.
I really wish this was the default configuration, because I often carry my clipboard content from one lengthy operation to another, so the frequent, accidental loss is pretty annoying.
I'm observing the behavoiur described in the question. I use PhpStorm from the WSL / an Ubuntu instance installed as Windows app.
It's extreme pain... Guys, is there a way to disable this "feature"?
("Tools -> Terminal -> Deselect 'Copy to clipboard on selection'" doesn't solve this problem for the editor.)
Hello!
Do you mean that selection in Editor is automatically added to clipboard?
Hi, yes, exactly, whatever I select in the editor view, it gets directly copied to the clipboard.
So, it's expected behaviour of X11's clipboard. Don't you face the same behaviour with other applications installed on WSL?
No, I don't. E.g. I tried to select text in the input field of the JetBrains Toolbox. And it didn't lead to adding the selection to the clipboard.
Could you please share idea.log ("Help | Show Log in...") after restarting IDE?
Update to my comment from October 18
I'm still not observing this behavior in the JetBrains Toolbox. But I opened gEdit -- and it behaves the same way. So, no idea, why it works correctly in the Toolbox, but you are right, it seems actually to be a problem not specific for PhpStorm.
You said, "it's expected behaviour of X11's clipboard". Do you know, how to change it?
Sorry, we don't have a solution. Probably there are some on Linux forums related to remote connections.
I had similar issue while working remotely (over VNC) with JB's IDEs and got rid of this annoying behavior by disabling option SendPrimary in vncconfig.
This is a fairly old question, but was nagging me and I finally determined how to fix it. In my case, I am running pycharm on a Debian/Ubuntu VM, from a Windows host, using putty/x11/VcXsrv, and while you can control a number of items from pycharm itself, like scale with Edit Custom VM options, the clipboard is a feature of the x server. You can right click on the systray icon for VcSxrv and deselect "Clipboard may use PRIMARY selection" or if you are starting your sever from a batch file, give it the -noprimary argument. The help text shows the argument as --noclipboardprimary, but that's incorrect. If you are using a different x server, check it's documentation.
On my Ryder this feature is disabled, but it actually works as it checked.. and I still copy on selection…

How I can disable it?
Qa Oleh , please specify your OS. If you connect to Rider remotely or use virtualization, please specify the connection type and client name.
I use cloud pc with win11, and remote desktop to connect from laptop on win11
Qa Oleh , please specify your client name and connection protocol. Do you use Windows Remote Desktop?
Also, do you use JetBrains Remote client?
Windows remote desktop, no, Rider installed on cloud pc
Alright, since this is the first google result for many related keywords, I am gonna put this right here.
IdeaVIM users only what your heart desires can be achieved by configuring the clipboard in
~/.ideavimrc
tounnamedplus
instead ofunnamed
This will disable the copy on select which is currently ruining your life when pasting. Thank me :)
FYI: One specific case for this is related to WSL2 + X410.
If both “Shared clipboard” and “Auto copy to Windows after selection” are selected then anything selected in IDEA running inside WSL2 is automatically put to the Windows clipboard as well.
This has nothing to do with IDEA.