How to enable autocomplete when pressing enter in VS C#

二次信任 提交于 2021-02-11 17:51:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!