问题
I want that Visual Studio Intellisense accept the suggested keyword after pressing enter. I could not find any option to toggle that.
By Default you can autocomplete the suggested keyword by pressing space or tabulator or an interpunctation.
I edited the settings.json in $HOME/Library/Application Support/Code/User/settings.json on MacOs
{
"telemetry.enableTelemetry": false,
"window.zoomLevel": 0,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
/* Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'.
Helps to avoid ambiguity between inserting new lines or accepting suggestions.
The value 'smart' means only accept a suggestion with Enter when it makes a textual change
*/
"editor.acceptSuggestionOnEnter": "on"
}
I expected that after saving the settings.json and restarting the Editor the changes are applied but nothing changed.
来源:https://stackoverflow.com/questions/58243608/how-to-enable-autocomplete-when-pressing-enter-in-vs-c-sharp