> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meetsilicon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up VS Code for Silicon

> Configure YAML validation in VS Code so schema issues in your Silicon files surface as you edit

## YAML validation

If you edit your Silicon YAML in VS Code -- dbt model schema files, or charts and dashboards managed as [content as code](https://docs.meetsilicon.com/workflow/content-as-code.md) -- set up schema validation so formatting and configuration issues are flagged before you compile or upload. You get autocomplete for supported properties and inline errors for invalid ones, using the same logic Silicon applies when compiling your project.

**1. Install the YAML extension**

Install the [YAML extension for VS Code](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).

**2. Map the Silicon schemas in settings.json**

Add the schemas to your `settings.json` file. [Read this guide](https://code.visualstudio.com/docs/getstarted/settings#%5Fsettings-json-file) for details on how to edit `settings.json`.

```json settings.json theme={null}
"yaml.schemas": {
  "https://raw.githubusercontent.com/silicon/silicon/main/packages/common/src/schemas/json/silicon-dbt-2.0.json": [
    "/**/models/**/*.yml",
    "/**/models/**/*.yaml"
  ],
  "https://raw.githubusercontent.com/silicon/silicon/main/packages/common/src/schemas/json/chart-as-code-1.0.json": [
    "silicon/charts/*.yml"
  ],
  "https://raw.githubusercontent.com/silicon/silicon/main/packages/common/src/schemas/json/dashboard-as-code-1.0.json": [
    "silicon/dashboards/*.yml"
  ]
}
```

> [!NOTE]
>
> Adjust the chart and dashboard globs to match where you write content as code. The defaults above assume `silicon download` wrote to `silicon/charts/` and `silicon/dashboards/`.

Once the extension is installed and your settings are updated, you'll see warnings like this when working on your `schema.yml` files.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.