Enable JSON with Comments in VS Code

Click on the letters JSON at the bottom in the right corner. Type jsonc to use the JSON with Comments file association.

It's also possible to configure that for all (or specific) JSON files via settings

"files.associations": {
    "<specific file>.json": "jsonc"
}
"files.associations": {
    "*.json": "jsonc"
}