In VS Code, disable error "Comments are not permitted in JSON"
Follow these steps:
- Click on the letters JSON in the bottom right corner. (A drop-down will appear to "Select the Language Mode.")
- Select "Configure File Association for '.json'..."
- Type
jsonc
and press Enter.
If you only want to disable the error message for a single file, skip step #2.
Add this to your User Settings:
"files.associations": {
"*.json": "jsonc"
},
If you don't already have a user settings file, you can create one. Hit Ctrl+, or ⌘+, (that's a comma) to open your settings, then hit the Open Settings (JSON) button in the upper right. It looks like this: