https://github.com/chrismeyers/vscode-pretty-json
Visual Studio Code extension that provides commands to format JSON
https://github.com/chrismeyers/vscode-pretty-json
extension formatter json visual-studio-code
Last synced: about 1 month ago
JSON representation
Visual Studio Code extension that provides commands to format JSON
- Host: GitHub
- URL: https://github.com/chrismeyers/vscode-pretty-json
- Owner: chrismeyers
- License: mit
- Created: 2021-08-04T17:54:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-10-06T17:17:32.000Z (6 months ago)
- Last Synced: 2026-01-15T04:25:37.855Z (2 months ago)
- Topics: extension, formatter, json, visual-studio-code
- Language: TypeScript
- Homepage:
- Size: 7.24 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-pretty-json
[Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=chrismeyers.vscode-pretty-json) | [Open VSX Registry](https://open-vsx.org/extension/chrismeyers/vscode-pretty-json)
Visual Studio Code extension that provides commands to format JSON

## Usage
1. Open a new file and enter some unformatted JSON
1. Open the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and run `Pretty JSON: Prettify`
1. Run `Pretty JSON: Uglify` to revert back to the unformatted JSON
## Configuration
By default, this extension does not define any keybindings in order to avoid interfering with existing settings.
However, the commands provided by this extension can be bound to any keybinding.
This can be done by opening the command palette, searching for `Preferences: Open Keyboard Shortcuts (JSON)`, and adding something like the following:
```json
[
{ "key": "ctrl+shift+p", "command": "vscode-pretty-json.prettify" },
{ "key": "ctrl+shift+u", "command": "vscode-pretty-json.uglify" }
]
```