Skip to content

Editing

Completion suggests directives, options, matchers, subdirectives, and accepted values for the current argument. Hover explains the selected item or value and links to Caddy’s documentation.

Documentation shown for a Caddyfile directive

Diagnostics find structural errors and close spelling mistakes. Unknown names stay hints because Caddy modules can add directives.

A Caddyfile diagnostic and quick fix

Definitions, references, rename, symbols, folding, and selection work across imported files.

Format Document follows caddy fmt. It edits the open document and does not enable format on save.

In *.caddyfiletest files, Caddyfile features stop at the ---------- separator. The expected JSON keeps JSON highlighting and is never changed by Caddyfile formatting.