Open ivanstnsk opened 4 months ago
I still get the "Missing, empty or invalid snippet: new php` error when opening a new php file. I've slimmed down my snippet to just the first line that I want inserted and the error still happens. What am I missing?
// php.json
{
"new php": {
"prefix": "newphp",
"body": [
"<?php"
],
"description": "newphp"
},
}
and
// settings.json
"autoSnippet.snippets": [
{
"pattern": "**/*.php",
"snippet": "new php"
}
],
Edit: Oh, I had to move my snippet from php.json
to the global snippets and now it works perfectly.
Hi there! If you got this error like me, just note that this extension doesn't work with
prefix
. Put a snippetname
notprefix
.Problem:
Solution: