In the Editor, a mousewheel click will paste the clipboard into my code. I don't use this and I often paste things I don't want with this feature on. But I can't find any place to turn it off. From reading the forums, I understand that this is only happens on Linux versions of Godot. But what I also know is that it isn't a linux or mint or x11 or wayland thing because godot is the only editor on my machine where this happens.
I’m pretty sure this is a Linux feature, not a “Linux version of godot” feature. I recommend googling how to turn the feature off in your specific Linux distribution. And I run Mint with X11, this feature is present everywhere in the OS, it is an OS feature. I’m not sure how you tested it.
it doesn’t happen in the linux terminal. I doesn’t happen in Xed. It doesn’t happen in JEdit. It doesn’t happen in LibreOffice. The only place i’ve ever seen it happen is in the Godot editor. And godot catches mouse and keyboard events so there must be a way to intercept it and turn it off.
Yes, that is it! Thank you ! The problem comes from the fact that the editor’s CodeEdit elements inherit from TextEdit, but the editor doesn’t expose a setting to turn off TextEdit.middle_mouse_paste_enabled. You should put that addon in the Asset Library!