Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Better JSON5New to Visual Studio Code? Get it now.
Better JSON5

Better JSON5

BlueGlassBlock

|
3,780 installs
| (5) | Free
JSON5 support for Visual Studio Code, done right ⚡
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

better-json5

JSON5 support for Visual Studio Code, done right ⚡

Features

Syntax highlighting with correctly colored keys, with your favorite theme support out-of-the-box

Syntax Highlighting

JSON Schema based validation and intellisense

Overview

Completely configurable formatting

Formatting

Sorting Command

Sorting

Proper folding for objects, arrays and multiline strings

Folding

Extension Settings

  • json5.schemas: Associate schemas to JSON5 files in the current project.
  • json5.validate.enable: Enable/disable validation.
  • json5.format.enable: Enable/disable formatting.
  • json5.format.keepLines: Keep all existing new lines when formatting.
  • json5.format.trailingCommas: Control the occurrence of trailing commas in objects and arrays.
  • json5.format.keyQuotes: Control the usage of quotes for object keys.
  • json5.format.stringQuotes: Control the usage of quotes for string values in objects and arrays.
  • json5.tracing: Traces the communication between VS Code and the JSON5 language server.

Credits

This extension is heavily based on the JSON Language Features extension by Microsoft.

Changelog

See CHANGELOG.md

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft