[英]Trigger Intellisense autocomplete using space, parenthesis, or period on Visual Studio Code
I have been using Visual Studio Community edition for all my C# Projects.我一直在为我所有的 C# 项目使用 Visual Studio 社区版。 But recently I switched to Visual Studio Code for doing some work in JavaScript.但最近我切换到 Visual Studio Code 来用 JavaScript 做一些工作。 The biggest thing I miss in VS Code is that option to include the autocomplete suggestion using space, parenthesis or period keys, instead, I can only include suggestion using the tab key.我在 VS Code 中最想念的是使用空格、括号或句号键包含自动完成建议的选项,相反,我只能使用 Tab 键包含建议。 How can I change that?我怎样才能改变它?
You could make your own keybindings for the same command.您可以为同一命令创建自己的键绑定。 Here is the tab acceptSelected Suggestion binding:这是选项卡acceptSelected Suggestion 绑定:
{ "key": "tab", "command": "acceptSelectedSuggestion", "when": "editorTextFocus && suggestWidgetVisible" }, { "key": "tab", "command": "acceptSelectedSuggestion", "when": "editorTextFocus &&SuggestWidgetVisible" },
You could add bindings for other keys.您可以为其他键添加绑定。 It might be a mess or it might work for you.它可能是一团糟,或者它可能对你有用。 In keybindings.json在 keybindings.json 中
您是否尝试在 settings.json 中设置"editor.acceptSuggestionOnCommitCharacter": true
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.