当我按“."时,Visual Studio代码会自动完成.钥匙.有什么禁用方法吗? [英] Visual Studio Code autocomplete when I press "." key. Any way to disable?
问题描述
当我尝试扩展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代码会自动完成.钥匙.有什么禁用方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!