On Windows:    Shift + Alt + F  
On Mac:        Shift + Option + F  
On Linux:      Ctrl + Shift + I  

Original answer How do you format code in Visual Studio Code (VSCode)?

I'm adding it here because when I was looking for it I found your post before the other one. Hope it helps.

Answer from manuelbcd on Stack Overflow
🌐
Visual Studio Marketplace
marketplace.visualstudio.com β€Ί items
JSON Viewer - Visual Studio Marketplace
Extension for Visual Studio Code - Preview JSON as tree view on VSCode
🌐
GitHub
github.com β€Ί dutchigor β€Ί json-grid-viewer
GitHub - dutchigor/json-grid-viewer: VSCode extension for viewing JSON files in a hierarchical grid format Β· GitHub
VSCode extension for viewing JSON files in a hierarchical grid format - dutchigor/json-grid-viewer
Author Β  dutchigor
🌐
Visual Studio Marketplace
marketplace.visualstudio.com β€Ί items
JSON Visualizer - Visual Studio Marketplace
Extension for Visual Studio Code - Visualize JSON data as interactive diagrams
🌐
Visual Studio Code
code.visualstudio.com β€Ί docs β€Ί languages β€Ί json
Editing JSON with Visual Studio Code
November 3, 2021 - The association of a JSON file to a schema can be done either in the JSON file itself using the $schema attribute, or in the User or Workspace settings (File > Preferences > Settings) under the property json.schemas Open in VS Code Open in VS Code Insiders . VS Code extensions can also define schemas and schema mapping.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com β€Ί items
jsonhero.io tools for VS Code - Visual Studio Marketplace
Extension for Visual Studio Code - Quickly view JSON in jsonhero.io - A beautiful JSON viewer for the web
🌐
GitHub
github.com β€Ί ccimage β€Ί jsonviewer
GitHub - ccimage/jsonviewer: A vscode extension that helps you valiadte and view JSON as treeview Β· GitHub
A vscode extension that helps you valiadte and view JSON as treeview - ccimage/jsonviewer
Author Β  ccimage
Find elsewhere
🌐
Visual Studio Marketplace
marketplace.visualstudio.com β€Ί items
JSON Grid Viewer - Visual Studio Marketplace
Extension for Visual Studio Code - Get a better overview of the content in a JSON file by viewing it in an resizable grid.
🌐
Reddit
reddit.com β€Ί r/vscode β€Ί what is your favorite json editor extension?
r/vscode on Reddit: What is your favorite JSON editor extension?
December 30, 2020 -

There are a couple I've tried, but they either aren't what I need or aren't updated anymore... JSON Editors I've tried:

  • JSON Editor (and a lot of forks of this repo)

  • JSON Tree Editor

  • JSON

What's your favorite JSON editor?

🌐
GitHub
github.com β€Ί marss19 β€Ί json-viewer-visual-studio-extension
GitHub - marss19/json-viewer-visual-studio-extension: A tool to format JSON to a friendly view, compare and print formatted results, evaluate JSONPath expressions
This is a simple Visual Studio extension to view and manipulate JSON. After installation it is available in the main menu: Tools -> JSON Viewer.
Starred by 18 users
Forked by 11 users
Languages Β  C#
🌐
Visual Studio Marketplace
marketplace.visualstudio.com β€Ί items
JSON Smart Viewer - Visual Studio Marketplace
Extension for Visual Studio Code - An interactive, collapsible tree viewer for JSON files.
🌐
Jondjones
jondjones.com β€Ί architecture β€Ί frameworks β€Ί visual-studio-code β€Ί tips-for-working-with-json-in-visual-studio-code
Tips for working with JSON in Visual Studio Code - Jon D Jones.
As seen below, this extension gives you a new view within VS-Code to work with JSON files: ![Tips for working with JSON in Visual Studio Code][1] By selecting the 'Open in JSON viewer' option from the command palette, you can view a JSON document ...
🌐
Visual Studio Marketplace
marketplace.visualstudio.com β€Ί items
JSON Lines Viewer - Visual Studio Marketplace
Extension for Visual Studio Code - View each line of JSON Lines file in json format
🌐
Visual Studio Marketplace
marketplace.visualstudio.com β€Ί items
Json Editor - Visual Studio Marketplace
Extension for Visual Studio Code - Generate a tree view editor of the active JSON document
🌐
Reddit
reddit.com β€Ί r/vscode β€Ί vscode extension with a treeview populated by a json file
r/vscode on Reddit: VSCode extension with a treeview populated by a JSON file
April 20, 2018 -

Hello to everybody!

this is my first post on reddit and I am new to Typescript and VSCode extension development.So please be kind and don't throw with stones...even when this post looks foolish!Thanks in advance!

I would like to build a VSCode extension that should help me doing my all-day work a little bit more efficient and faster.One part of this extension is a custom view in the activitybar that should be populated by a JSON file.This JSON file should be integrated somewhere in the extensions' source code.That means, the extension should read it in the background and build a treeview with only 2 levels.This file could be changed very rarely from time to time...and when, only by me as the extensions' author. So it's more or less a static content source.

The JSON file itself looks like this and is named for example "view-source.json":

{
  "portal": {
    "flush": "portal.flush(param1, param2)",
    "get_stats": "portal.get_stats(param1, param2)",
    "setup": "portal.setup(param1, param2)",
    "version": "portal.version(param1, param2)"
  },
  "xml": {
    "transform": "transform(param1, param2)",
    "update": "update(param1, param2)",
    "xml_to_json": "xml_to_json(param1, param2)"
  }
}

What I want to achieve is the following view:

The treeview

As you can see, the JSON object provided 2 properties that should build the first level in the treeview.The second level should be created on basis of the objects properties that are hold by the first-level props.At this moment, I only want to get the view without any additional functionalities...only the view that is populated from the JSON file every time VSCode starts.

What you also can see so far is, that I understand how to provide the activitybar icon and view and how to use the package.json to add views to it. The next step is now to fill the view(s) with items.

Before someone tends to answer something like "RTFM"...I have studied the official VSCode manuals and API docs. I tried a lot of the VSCode examples on Github provided by Microsoft and the community. And I had also a look at some officially released marketplace extension.I really want to get it and all these examples are great...But for me personally, the docs and the samples are either too simple or too complex.I need something in between...something more intermediate.

At the moment I am building my skills from the scratch and for that I need some help.

If possible, it would be very very awesome when someone could provide me the most simple example suitable for the thing I described above. This would kick-start me a lot!

Thanks in advance for reading this post and (maybe) for some examples and/or advices!

🌐
JSON Crack
jsoncrack.com
JSON Crack | Online JSON Viewer - Transform your data into interactive graphs
It might vary depending on the complexity of the data and your hardware. ... Yes, you can export the generated graphs as PNG, JPEG, or SVG files. ... You can use the VS Code extension to visualize JSON data directly in your editor.