Set up json schema checker

From Stardew Modding Wiki
Jump to navigation Jump to search


With fancy software like Visual Studio Code and Sublime, you could get the schema set up so it checks the formatting as you write your mod! Like a built in https://smapi.io/json/. See more details on Pathoschild's GitHub.

Below are screenshots of how it should look in VS Code. You may also be interested in how to search an entire folder with VS Code. If you have your mod files on GitHub, you may also be interested in setting up VS Code GitHub source control.

How to get to Settings in VS Code
Validator Schema in the VS Code Settings


{
    "fileMatch": [
         "content.json"
    ],
    "url": "https://smapi.io/schemas/content-patcher.json"
},
{
    "fileMatch": [
         "manifest.json"
    ],
    "url": "https://smapi.io/schemas/manifest.json"
},