VS Code PHP tag autocomplete

Go to File -> Preferences -> User Snippets -> Then select html.json (HTML) and paste this snippet into the html (yes, that’s html) user snippets:

"php": {
    "prefix": "php",
    "body": [
        "<?php $1 ?>"
    ],
    "description": "php tag"
}

Leave a Reply

Your email address will not be published. Required fields are marked *