Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>JSON5 syntax extendedNew to Visual Studio Code? Get it now.
JSON5 syntax extended

JSON5 syntax extended

Katjana Kosic

|
9,919 installs
| (4) | Free
This extension extends the JSON5 syntax highlighting for keys and numbers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-json5

This extension adds syntax highlighting of JSON5 files in VS Code based on this repository: https://github.com/mrmlnc/vscode-json5.

Colorization

Here's what changed: The colorisation of the keys is now different from the string values no matter if they are double or single quoted or not at all. Following screenshots show the before and after:

Before adjustment:

JSON5 syntax in VS Code before

(imported from Atom package)

After adjustment:

JSON5 syntax coloring in VS Code after adjustment

Usage

Install the extension in VS Code

  • Open the command palette using Ctrl+P.
  • Type ext install json5 in the command palette.

Select JSON5 as a language

  • On the bottom-right corner, click on the select language mode button, if you have created a new file it should display Plain Text.
  • Select JSON5 in the list of languages.
  • Alternatively, saving the file with a .json5 extension, will allow VS Code to understand that it is a JSON5 file, and automatically select the language correctly.

Supported features

  • Syntax highlight

Supported filetypes

  • .json5

Contributing

These simple rules will help me to solve your problem.

  • Check the Issues and Pull requests sections for duplicates of your question or path.
  • If you want create Issue:
    • Specify the version of your editor and used theme.
    • Detailed description of your problem:
      • Description
      • Code sample
      • Screenshot
  • If you want create Pull request:
    • Fork this repository and clone it to your machine.
    • Open folder contains this extension in VS Code.
    • Press F5.
    • Make your changes and send a PR.

Changelog

See the Releases section of my GitHub project for changelogs for each release version.

License

This software is released under the terms of the MIT license.

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