简体   繁体   中英

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. But recently I switched to Visual Studio Code for doing some work in 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. How can I change that?

You could make your own keybindings for the same command. Here is the tab acceptSelected Suggestion binding:

{ "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

您是否尝试在 settings.json 中设置"editor.acceptSuggestionOnCommitCharacter": true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM