Visual Studio Code user snippets not working

后端 未结 18 2437
遥遥无期
遥遥无期 2021-02-01 02:13

I\'ve enabled the default \"log\" snippet in VS Code. I also added another snippet. Neither show up when I type their prefixes. I have set editor.tabCompletion to t

18条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-01 02:59

    There are a couple of ways you can fix this problem. The problem is Intellisense is getting in the way or default putting your snippets at the bottom of the list.

    First I played with the suggestion delay, but then I settled on having Intellisense put my snippets in the top of the list of suggestions with the snippetSuggestions user preference:

    {
      "editor.tabCompletion": true,
      "editor.snippetSuggestions": "top"
    }
    

提交回复
热议问题