当我按下“."时,Visual Studio Code 会自动完成钥匙.有什么办法可以禁用? [英] Visual Studio Code autocomplete when I press "." key. Any way to disable?

查看:28
本文介绍了当我按下“."时,Visual Studio Code 会自动完成钥匙.有什么办法可以禁用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试扩展 React.Component 抽象基类时,当我输入 React 时,我会在下面的框中收到自动完成建议.问题是即使我输入.",它们也会完成.键,而不是像人们期望的那样使用 Tab 或 Enter.

When I'm trying to extend the React.Component abstract base class, I get autocomplete suggestions in the box below as I type in React. The problem is they complete even when I type in the "." key, rather than tab or enter as one would expect.

有什么办法可以禁用这种行为,这样我就不会用点键自动完成.我想一种解决方法可能是获得一个扩展程序,该扩展程序可以弹出更多与 React 相关的建议/片段.到目前为止,我没有运气尝试其中的一些.我也没有在键绑定中找到任何与此相关的内容.

Is there any way to disable this behavior, so that I don't get autocomplete with the dot key. I guess a workaround could be to get an extension that would make more React related suggestions/snippets pop up. So far I had no luck with trying some of those out. I also didn't find anything related to this in keybindings.

我尝试禁用所有与智能感知、自动完成或代码段有关的扩展(注意我有很多),但它似乎来自 VSCode 本身.

I tried disabling all of my extensions that have anything to do with intellisense, autocomplete or snippets (note that I have many), but it seems to be coming from within VSCode itself.

推荐答案

"editor.acceptSuggestionOnCommitCharacter": false,

这篇关于当我按下“."时,Visual Studio Code 会自动完成钥匙.有什么办法可以禁用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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