Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 827 Bytes

20220827_jsonconfig_vscode.md

File metadata and controls

36 lines (32 loc) · 827 Bytes

Enable syntax help for JSON Config in VSCode

If you want to have syntax help for JSON Config in VSCode, open .vscode/settings.json and add the following inside the json.schemas section:

{
	"fileMatch": [
		"admin/jsonConfig.json",
		"admin/jsonCustom.json",
		"admin/jsonTab.json"
	],
	"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
}

The file should look like this afterwards:

{
	// ... other settings
	"json.schemas": [
		{
			"fileMatch": ["io-package.json"],
			"url": "https://json.schemastore.org/io-package"
		},
		{
			"fileMatch": [
				"admin/jsonConfig.json",
				"admin/jsonCustom.json",
				"admin/jsonTab.json"
			],
			"url": "https://raw.githubusercontent.com/ioBroker/adapter-react-v5/main/schemas/jsonConfig.json"
		}
	]
}