Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Ctrl-Click in VS Code

Tags:

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.

like image 628
WoofWoofDude Avatar asked Jun 07 '16 15:06

WoofWoofDude


People also ask

How do I enable Ctrl click code in Visual Studio?

If you are a keyboard user, place your text cursor somewhere inside the symbol name and press F12. If you are a mouse user, either select Go To Definition from the right-click menu or use the Ctrl-click functionality described in the following section.

How do I enable Ctrl D in VS Code?

The main step are: File > Preferences > Keyboard Shortcuts. type "copy line",then you will see the related shortcuts. remember the new shortcut(e.g. Shift + Alt + Down) or modify the shortcut to ctrl + D.


1 Answers

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

like image 149
Reg Edit Avatar answered Sep 22 '22 12:09

Reg Edit