Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Quick JSON FormatterNew to Visual Studio Code? Get it now.
Quick JSON Formatter

Quick JSON Formatter

Likitha Chendrimada Suguna

|
1 install
| (0) | Free
Format and beautify JSON instantly with a single command, right-click menu, or keyboard shortcut.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Formatter

A lightweight Visual Studio Code extension that instantly beautifies and formats JSON files with proper indentation.

Features

  • Format JSON with a single command
  • Access from the Command Palette
  • Format JSON directly from the editor context menu
  • Keyboard shortcut support (Ctrl + Alt + J)
  • Validates JSON before formatting
  • Fast and lightweight

Installation

From the Visual Studio Marketplace

Search for JSON Formatter in the Extensions Marketplace.

or

Install from a VSIX

  1. Open VS Code
  2. Open Extensions (Ctrl + Shift + X)
  3. Click the ... menu
  4. Select Install from VSIX...
  5. Choose the downloaded .vsix file

Usage

Command Palette

  1. Open a JSON file.
  2. Press Ctrl + Shift + P.
  3. Search for:
Format JSON
  1. Press Enter.

Right Click

Open a JSON file.

Right click inside the editor.

Select

Format JSON

Keyboard Shortcut

Ctrl + Alt + J

(macOS)

Cmd + Option + J

Example

Before

{"name":"Likitha","age":20,"skills":["Java","Spring Boot"]}

After

{
  "name": "Likitha",
  "age": 20,
  "skills": [
    "Java",
    "Spring Boot"
  ]
}

Error Handling

If the JSON is invalid, the extension displays an error message instead of modifying the file.

Example:

Invalid JSON.

Requirements

  • Visual Studio Code 1.125.0 or later

Repository

GitHub Repository

https://github.com/LikithaCSuguna/JSON-Formatter


Contributing

Contributions are welcome.

If you'd like to improve this extension:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Open a Pull Request

Reporting Issues

Found a bug?

Please create an issue here:

https://github.com/LikithaCSuguna/JSON-Formatter/issues


License

This project is licensed under the MIT License.

See the LICENSE file for details.


Author

Likitha Chendrimada Suguna

GitHub

https://github.com/LikithaCSuguna

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