How to disable Ctrl-Click in VS Code
There is a VS Code feature request for this on GitHub, under the more general heading Allow customization of mouse shortcuts.
Anyone interested in this VS Code feature should comment/vote there. (The Ctrl-click-specific GitHub posts have been closed off and linked to this one.)
Related videos on Youtube
WoofWoofDude
Updated on September 15, 2022Comments
-
WoofWoofDude over 1 year
I want to know if it's possible to remove the key bind on Ctrl-Click for the
goToDefinition
(F12) editor action.This is so annoying, every time i try to Ctrl+C/V it trigger and go to the definition cause I'm holding Ctrl while I'm highlighting the code with my mouse.
I have search for it on google but all y can change is the F12 key bind for
goToDefinition
which is not what I want.--- Update
This is the feature I want to disable
I need to remove the ctrl+click key bind. Even if I replace it, it doesn't work.
-- Update 2
I finally found something on the subject Here
But for me it doesn't work at all.
-- Update 3
Created a new issue on GitHub (#7827) Look at it if you wanna see the update on the request.
-
Slate over 5 yearsFor fellow searchers, the Github issue was closed as it was specific to this copy-paste bug. The overaching feature of disabling Ctrl-Click is at: github.com/Microsoft/vscode/issues/23957 and has not been fixed at time of writing.
-
-
WoofWoofDude almost 8 yearsmaybe i do it wrong.. Should i change [mouse button] by left or right ?? cause when i write the exact same thing as you it doesnt work :/
-
Johannes Rieken over 7 yearsATM VS Code has no support to configure the mouse behaviour. This answer is not correct
-
Christopher Haws about 7 yearsThis answer used to work for me but no longer works. VSCode must have removed this feature =/
-
Pandiyan Cool over 3 yearsSomeone downvoting this answer after 4 years. :) VSCode itself might have dropped that feature. :)