Search code examples
jsonvisual-studio-codecomments

How do I delete all comments in .json file? (vscode)


I found the Remove Comments extension but this extension only supports html/css. Is there anyway to remove all comments on a json file?


Solution

  • if you set the languageID of the file to: JSON with comments jsonc

    it will remove the comments