Arbaz Ajaz

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!

--

--

These keybindings somewhat resemble VIM bindings because they are inspired by them. But I have tweaked them for my ease as i did not really like changing modes and hjkl really did not feel that great tbh. Keep in mind, this is my opinion and it might not align well with yours.

--

--

Arbaz Ajaz

Arbaz Ajaz

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