Skip to content

Instantly share code, notes, and snippets.

@ailequal
Created January 20, 2024 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ailequal/2436ab49e9faec0eda4a5c03f75246a4 to your computer and use it in GitHub Desktop.
Save ailequal/2436ab49e9faec0eda4a5c03f75246a4 to your computer and use it in GitHub Desktop.
random-tips-and-tricks

json schema

To use a local json schema inside your project with Visual Studio Code create a .vscode folder and a settings.json file inside it. Then set the following configuration tuned up for your specific needs:

{
  "json.schemas": [
    {
      "fileMatch": [
        "/package.json"
      ],
      "url": "./src/schemas/json/package.json"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment