The association of JSON schemas to files is done in the settings (File, Preferences, User Settings or Workspace Settings), under the property 'json.schemas'.

This is an example how the JSON schema for bower is associated to the bower schema.

"json.schemas": [
    {
        "fileMatch": [
            "/bower.json",
            "/.bower.json"
        ],
        "url": "http://json.schemastore.org/bower"
    },
    ...

You can also use schemas located in your workspace or define a schema right in the settings itself. Check https://code.visualstudio.com/docs/languages/json for examples.

Answer from Martin Aeschlimann on Stack Overflow
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ languages โ€บ json
Editing JSON with Visual Studio Code
November 3, 2021 - The current editor mode is indicated in the editor's Status Bar. Select the mode indicator to change the mode and to configure how file extensions are associated to modes. You can also directly modify the files.associations Open in VS Code Open in VS Code Insiders setting to associate file names or file name patterns to jsonc. To understand the structure of JSON files, we use JSON schemas...
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 73238749 โ€บ vs-code-ui-editor-for-json-schemas
vs code ui editor for json schemas - Stack Overflow
20 JSON editor (highlight, collapse, validate) in Visual Studio 2012 IDE ยท 3 How can I get Visual Studio 2013 to use a custom JSON schema?
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
JSON Schema Studio - Visual Studio Marketplace
Extension for Visual Studio Code - Convert JSON to TypeScript interfaces and generate JSON schemas with ease. Features smart format detection, right-click context menu, and multiple output options.
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
JSON Schema Tools - Visual Studio Marketplace
Extension for Visual Studio - Allows you to easily generate a schema file from a JSON file and generate a JSON file with dummy data based on a schema file.
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
Smart JSON Schema - Visual Studio Marketplace
Extension for Visual Studio Code - Smart JSON Schema is a Visual Studio Code extension designed to simplify the generation of JSON schemas from existing JSON files. This tool is perfect for developers working with APIs, configurations, and ...
๐ŸŒ
GitHub
github.com โ€บ eclipsesource โ€บ jsonforms-tooling โ€บ blob โ€บ master โ€บ vscode-extension โ€บ README.md
jsonforms-tooling/vscode-extension/README.md at master ยท eclipsesource/jsonforms-tooling
Right click on a schema.json or a uischema.json file. The editor will now ask you to select the other file (if you selected a schema file in the first step, now select the uischema file).
Author ย  eclipsesource
๐ŸŒ
Read the Docs
vscode-docs.readthedocs.io โ€บ en โ€บ stable โ€บ languages โ€บ json
Json - vscode-docs
You can format your JSON document (or just a part of it) using kb(editor.action.format) or Format from the context menu. To understand the structure of JSON files, we use JSON schemas.
Find elsewhere
๐ŸŒ
DEV Community
dev.to โ€บ brpaz โ€บ how-to-create-your-own-auto-completion-for-json-and-yaml-files-on-vs-code-with-the-help-of-json-schema-k1i
How to create your own auto-completion for JSON and YAML files on VS Code with the help of JSON Schema - DEV Community
April 27, 2020 - In this article, I demonstrate how to create a JSON Schema, to provide auto-completion to Hadolint configuration files on VS Code editor. Tagged with vscode, jsonschema, productivity.
๐ŸŒ
Joshuatz
docs.joshuatz.com โ€บ cheatsheets โ€บ js โ€บ json-schema
JSON Schema - Resources, Notes, and VSCode Tips | Joshua's Docs
This is how bundled language extensions that come with VSCode, like configuration-editing, internally contribute schema resolvers (example) Note: For the $schema or url value, the path to the schema file does not have to be local; many extensions and plugins use a public URL, such as http://json.schemastore.org/eslintrc.
๐ŸŒ
Score
docs.score.dev โ€บ docs โ€บ score-specification โ€บ ide-linter-autocomplete
IDE linter for Score's JSON schema | Score
Ensure you have an add-on such as vscode-yaml installed. This is required for the validation of your Score YAML files, as Visual Studio Code only supports json.schemas out of the box. To enable schema validation in your IDE, open your editorโ€™s Settings next.
๐ŸŒ
Netlify
nickymeuleman.netlify.app โ€บ blog โ€บ json-schema
JSON-schemas are awesome | Nicky Meuleman
To get started with the least amount of effort, you can use VSCode, which has builtin support for JSON-schema. Create a file that is listed at schemastore.org and trigger the autocomplete in the editor (ctrl/cmd + space)
๐ŸŒ
GitHub
github.com โ€บ madskristensen โ€บ JsonSchemaGenerator
JSON Schema Generator - A Visual Studio extension
Allows you to easily generate a schema file from a JSON file and generate a JSON file with dummy data based on a schema file. Right-click your JSON file in the editor window and select Extract JSON Schema.
Author ย  madskristensen
๐ŸŒ
GitHub
github.com โ€บ remcohaszing โ€บ vscode-schemastore
GitHub - remcohaszing/vscode-schemastore: Use the JSON Schema Store catalog for JSON schema validation. ยท GitHub
This extension is updated daily to provide JSON schema for all schemas in the catalog.
Starred by 33 users
Forked by 3 users
Languages ย  JavaScript
๐ŸŒ
Linkedlist
linkedlist.ch โ€บ json-schema-vscode_74
How to set up JSON Schema with VSCode
Find "JSON: Schemas" and click on "Edit in settings.json". The settings.json will be opened with the corresponding setting already prefilled. The fileMatch property is a list of file name patters that should be validated against the schema. The url property allows you to define the address ...
๐ŸŒ
Schemastore
schemastore.org
JSON Schema Store
In supported JSON editors like Visual Studio and Visual Studio Code, schema files can offer auto-completion and validation to make sure your JSON document is correct.