How to disable Ctrl-Click in VS Code

11,184

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.)

Share:
11,184

Related videos on Youtube

WoofWoofDude
Author by

WoofWoofDude

Updated on September 15, 2022

Comments

  • WoofWoofDude
    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

    enter image description here

    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
      Slate over 5 years
      For 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
    WoofWoofDude almost 8 years
    maybe 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
    Johannes Rieken over 7 years
    ATM VS Code has no support to configure the mouse behaviour. This answer is not correct
  • Christopher Haws
    Christopher Haws about 7 years
    This answer used to work for me but no longer works. VSCode must have removed this feature =/
  • Pandiyan Cool
    Pandiyan Cool over 3 years
    Someone downvoting this answer after 4 years. :) VSCode itself might have dropped that feature. :)