Visual Studio Code user snippets not working

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

    I was trying to setup a snippet to auto add the php open and close tags into my file, as Robert Cooper noted it only worked when I was already writing inside the code specific type block.

    So I set !p to load whenever I use it inside an HTML block. The snippet was set into the html.json file.

提交回复
热议问题