Enable Intellisense in JSON files

Arbaz Ajaz
Mar 31, 2022

JSON Schema helps you in annotating and validating your JSON documents.

Example

Let’s take an example of a typescript project. A typescript project mainly contains a tsconfig.json file. For more information about the file, take a look at its documentation. Normally, VSCode provides intellisense for this file but…

Say we need to maintain a separate configuration file for alias imports, but how do we enable intellisense for it? Easy, we can look for JSON Schema for tsconfig file on the web, I found one here. All we need to do now is to add the following in our newly created json file that we need intellisense for:

{
"$schema": "<paste url for json schema here>",
... rest of the content
}

and here is the result!

--

--

Arbaz Ajaz

Arbaz is a MERN Stack developer, aiming to make learning programming accessible and straight forward