We use cookies to make your experience better.
Learn how to use code completion when creating workspace templates.
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
replace the <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.
See an opportunity to improve our docs? Make an edit.