YAML for Visual Studio Code
- JSON Schema validation
- Quick Navigation (Ctrl + Shift + O)
- Document formatting
- Hover data descriptions (when provided by active schemas)
Schemas are handled exactly same way they are with JSON in Visual Studio Code and your schema file must still be written in JSON. This means you can:
- Declare in the current file by specify a
$schema
element. - Map files by settings using the
json.schemas
settings key in User Settings, Workspace Settings, or even define your schema within Settings. - Define in extensions using the
jsonValidation
contribution point.
- No support has been implemented for include references. (relevant code)
- Formatter strips comments and
---
yaml marker. see issues/#9 - Formatter renames anchors/references in the style &ref12/*ref12
This extension would not have been possible without numerous open source projects. Please see ACKNOWLEDGMENTS.md.
Contributions are welcome! To install dependencies and begin work, run:
npm install
This was forked from https://github.com/Microsoft/vscode/tree/master/extensions/json, to prepare the latest commits from upstream, use:
git clone https://github.com/Microsoft/vscode.git
cd vscode
git checkout -b vscode-json
git filter-branch --prune-empty --subdirectory-filter extensions/json/ vscode-json