Visual Studio Code user snippets not working

后端 未结 18 2090
遥遥无期
遥遥无期 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:57

    For those who are looking for overriding default snippet (log)

    Overriding the log.json file snippet was not working for me in User Snippets (For Typescript at least).

    Solution: I created a new global snippet ( File > Preferences > User Snippets > New Global Snippets file ) with a different name 'clog' (full name: 'clog.code-snippets') and prefix and it worked.

提交回复
热议问题