By default my Visual Studio Code uses a JSON schema definition when editing YAMl files. How to turn this off and simply use YAML syntax highlighting without specific JSON schema? In the schema selector there is not "No schema".
You can also define what schema to use with a comment at the top of the yaml file.
If you don't have a schema, you can use the yamllint schema, which doesn't expect any special content, but just warns you about possible general problems:
# yaml-language-server: $schema=https://json.schemastore.org/yamllint.json
your:
normal: yaml goes here
I solved this when I disabled this option in VSCode settings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With