I dont know where am i wrong... pls help me. I've been searching the internet for an hour and I can't find a solution.
CodePudding user response:
On the line under the comment block, change }
to },
(add a comma).
CodePudding user response:
{
// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
},
{
"Open php tag": {
"scope": "php, html",
"prefix": "php",
"body": [
"<?php",
" $1",
"?>"
],
"description": "Opens php tags"
}
}
I tried another JSON form but the same error occurs, here is what the JSON validator says.
Error: Parse error on line 1:
{ // Place your snippe
--^
Expecting 'STRING', '}', got 'undefined'