VS Code php tag autocomplete

后端 未结 7 2270
刺人心
刺人心 2020-12-23 11:47

kind of trivial question but here it goes. I can\'t figure out why VS Code autocompletes (with tab) all html tags correctly while php tag not. When i type \"php\" and hit t

7条回答
  •  暖寄归人
    2020-12-23 12:18

    In Visual Studio Code, go to File > Preferences > User Snippets > html.json file and then paste the following code:

    "php": {
        "prefix": "php",
        "body": [
            "",
            "$2"
        ],
        "description": "php tag"
    }
    

提交回复
热议问题