Visual Studio Code user snippets not working

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

    What I actually found is that when you have a php intelliSense and you want a php tab tag to open and close, I added the extension to a html file type as well.

       {
          "Open php tag": {
             "scope": "php, html",
             "prefix": "php",
             "body": [
               ""
            ],
            "description": "Opens php tags"
          }
       }
    

    This worked for me :)

提交回复
热议问题