VSCode how to automatically insert Intellisense suggestions without having to press Enter?

后端 未结 1 583
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-17 03:42

Default VS Code Intellisense behaviour

  • User is presented with a menu of suggestions
  • User then has to press the Up or Down arro
1条回答
  •  粉色の甜心
    2021-01-17 04:07

    The editor.tabCompletion option is the closest thing currently available:

    By default, tab completion is disabled. Use the editor.tabCompletion setting to enable it. These values exist:

    • off - (default) Tab completion is disabled.
    • on - Tab completion is enabled for all suggestions and repeated invocations insert the next best suggestion.
    • onlySnippets - Tab completion only inserts static snippets which prefix match the current line prefix.

    (Emphasis mine)


    ... except that the first Tab press hides the suggestion window.

    I did some digging about editor.tabCompletion, and I found that closing the suggestion window is part of the tab completion's option original design, and that while other users have asked about an option not to close the suggestion window or specifically YouCompleteMe-style behaviour, that this is currently not supported.

    0 讨论(0)
提交回复
热议问题