Enable JSON with Comments in VS Code
In this post we will give you information about Enable JSON with Comments in VS Code. Hear we will give you detail about Enable JSON with Comments in VS CodeAnd how to use it also give you demo for it if it is necessary.
JSON doesn’t support comments by default but some parsers and apps allow you to add comments especially that JSON is nowadays used for configuration files where comments can be very useful.
If you use Visual Studio Code IDE, comments can’t be added to JSON files by default but you can enable them by setting JSONC (JSON with Comments) as the parser in VS Code.
If you edit a JSON file that contains comments. VS Code will outputs an error saying: “Comments are not permitted in JSON.”
Let’s see how to enable JSON comments.
Setting JSON with Comments In VS Code
Click on JSON at the bottom-right corner then type jsonc to use the JSON with Comments file association.
You can also configure JSONC for all JSON files by adding the following settings:
"files.associations":{"<specific file>.json":"jsonc"}"files.associations":{"*.json":"jsonc"}
Hope this code and post will helped you for implement Enable JSON with Comments in VS Code. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs