Coder provides a JSON Schema for workspace templates that enables code completion and syntax checking.
You must have the YAML extension by Red Hat installed to use this feature.
Create a file called
coder.yaml, and add the following to the top (be sure to
<deployment_url> placeholder with your Coder deployment URL):
# yaml-language-server: $schema=https://<deployment_url>/api/private/template/schemas/wac.schema.json # Write your YAML config here
At this point, you can use the code completion and syntax checking features.
Some keyboard shortcuts you may find helpful include:
See the YAML extension by Red Hat docs for additional shortcuts.