如何在VS Code中禁用Ctrl-Click
想知道是否有可能在Ctrl-Click上删除goToDefinition( F12 )编辑器操作的键绑定...
Wanna know if it's possible to remove the key bind on Ctrl-Click for the goToDefinition (F12) editor action...
这很烦人,每次我尝试 Ctrl + C / V 时,都会触发并转到定义原因,因为我当我用鼠标突出显示代码时,按住 Ctrl ……这可能是我养成的不良习惯,但天哪,请关闭此功能.
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... May be it's just a bad habits I got but god I need to turn this off please.
我已经在Google上进行搜索,但是所有可以更改的是goToDefinition的 F12 键绑定,这不是我想要的.
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.
谢谢 WoofWoofDude
Thanks WoofWoofDude
---更新
这是我要禁用的功能
所以我需要删除ctrl + click按键绑定... 即使我更换了它,也行不通.
So i need to remove the ctrl+click key bind... Even if i replace it, it doesn't work.
-更新2
我终于在这个问题上找到了一些东西:
I finally found something on the subject :
https://github.com/Microsoft/vscode/issues/189
但是对我来说根本不起作用...
But for me it doesn't work at all...
-更新3
在github上创建了一个新问题(#7827 ) 如果您想查看请求的更新,请查看它.
Created a new issue on github (#7827) Look at it if you wanna see the update on the request.
在 keybingings.json 中添加以下行以禁用(实际上是覆盖默认行为)鼠标+单击
Add the following lines in keybingings.json to disable (actually override default behaviour) mouse+ click
[
{ "key": "ctrl+[mouse button]", "command": "cursorWordLeft",
"when": "editorTextFocus" }
]
要打开按键绑定文件,请遍历
To open key bindings file, traverse
文件>首选项>键盘快捷键
File > Preferences > Keyboard Shortcuts