如何在VS Code中禁用Ctrl-Click [英] How to disable Ctrl-Click in VS Code

查看:173
本文介绍了如何在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

这篇关于如何在VS Code中禁用Ctrl-Click的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆