VS Code Intellisense don't suggest snippet at first

后端 未结 4 1342
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 07:52

I want to use code snippets in VSCode. But when I type, for example, for in javascript file, the Intellisense doesn\'t suggest snippet \"for-loop\" - I need to manu

4条回答
  •  猫巷女王i
    2021-01-31 08:30

    Setting editor.snippetSuggestions to top only works for certain snippets: for but not foreach. With top, the snippet does appear higher in the completion list, but for some reason the keyword version is what is highlighted, with the snippet option scrolled out of view (and the scrollbar quickly fades, giving the impression there's nothing hidden)

    The editor.tabCompletion to true approach works for both for and foreach.

提交回复
热议问题