bnomei / kirby3-schema

JSON Schema file for Kirby 3 and 4 Blueprints

Home Page:https://forum.getkirby.com/t/blueprint-yaml-file-autocompletion-and-validation-in-your-favourite-code-editor/25905

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VS Code

tobimori opened this issue · comments

You will need the Red Hat VS Code YAML Extension: https://github.com/redhat-developer/vscode-yaml

And then you can use the yaml.schemas setting to add your schema like this:

  "yaml.schemas": {
    "/path/to/your/schema/kirby3-blueprints.schema.json": "site/blueprints/**/*.yml"
  }

This will automatically use the schema for all blueprint files.