The purpose of this extension is to offer a JSON prettifier that will act on a given selection. Hence, one can only prettify locally and keep one-line JSON and pretty JSON in the same file.
It is available on Visual Studio Marketplace
Prettify Selected JSON in Visual Studio Marketplace
Or can be forked directly on github and packaged from the sources.
- Install via package manager: hit F1 or "Ctrl + Shift + P", type install and then type Prettify Selected JSON and hit enter.
- Clone the git repository and package it up via vsce for example.
This extension is under MIT license.