Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Yag Template LSPNew to Visual Studio Code? Get it now.
Yag Template LSP

Yag Template LSP

Joseph Liu

|
214 installs
| (0) | Free
Fully-featured editor support for YAGPDB custom commands
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

YAGPDB Template LSP

A VS Code extension providing rich editor support for YAGPDB's templating language.

Recognized file extensions: .yag, .yagcc, .gotmpl, .go.tmpl

Features

Most basic LSP features are supported, notably:

  • syntax highlighting
  • live error reporting as you type
  • code completion for variable and function names
  • hover documentation for functions
  • inlay hints for function parameter names
  • document formatting

in addition to the following niceties:

  • variable renaming
  • goto definition for variables
  • find all references for functions and variables
  • automatic indentation
  • folding ranges

More sophisticated type-aware code completion is on the roadmap as a long-term goal.

Formatting

Use VS Code's Format Document command, or enable editor.formatOnSave for YAG files. Formatting uses the closest yagfmt.toml in the file's directory or an ancestor. The configuration file accepts these optional fields:

max_width = 100
indent = "tabs" # or a positive number of spaces
continuation_indent = "tabs" # or a positive number of spaces
delimiter_padding = "spaces" # or "none"
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft