Visual Studio Code user snippets not working

后端 未结 18 2438
遥遥无期
遥遥无期 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 03:02

    Don't forget to specify the language in global snippet. In my case it fixed.

    {
      "Print to console": {
            "scope": "javascript,vuex,vue",
            "prefix": "debes",
            "body": [
                "// eslint-disable-next-line",
                "debugger;"
            ],
            "description": "Log output to console"
        }
    }
    

提交回复
热议问题