website/developer-docs: Add note for custom YAML tags in an IDE (#9528)

Add note for custom tags in an IDE

Custom tags are not provided via the schema file, but must be defined in the IDE. If this is not done, the IDE displays syntax errors when using the custom tags.

Signed-off-by: Nils Mittler <70568139+mittler-works@users.noreply.github.com>
This commit is contained in:
Nils Mittler
2024-04-30 22:08:30 +02:00
committed by GitHub
parent 039570a140
commit b0c39e4843

View File

@ -1,5 +1,26 @@
# YAML Tags
To use the custom tags with your preferred editor, you must make the editor aware of the custom tags.
For VS Code, for example, add these entries to your `settings.json`:
```
{
"yaml.customTags": [
"!KeyOf scalar",
"!Env scalar",
"!Find sequence",
"!Context scalar",
"!Format sequence",
"!If sequence",
"!Condition sequence",
"!Enumerate sequence",
"!Index scalar",
"!Value scalar"
]
}
```
#### `!KeyOf`
Example: