Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Stag Programming LanguageNew to Visual Studio Code? Get it now.
Stag Programming Language

Stag Programming Language

Stag Language

| (0) | Free
Syntax highlighting and Language Server (autocomplete, live diagnostics, hover, go-to-definition, formatting) for Stag (.stag).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Stag Programming Language for Visual Studio Code

Official syntax highlighting and Language Server Protocol (stag-lsp) integration for the Stag programming language.

Features

  • Syntax Highlighting: Full TextMate grammar for .stag source files (records, choices, traits, attach blocks, generics, f-strings, zones, inline assembly, and Standard Kit imports).
  • Live Diagnostics: Real-time lexer, parser, semantic, memory-analysis, and style errors/warnings powered by stag-lsp.
  • Hover & Signature Help: Inspect inferred types, function signatures, and parameter details on hover or while typing calls.
  • Go to Definition & Document Symbols: Navigate to user declarations and embedded Standard Kit (kit.*) symbols.
  • Completions: Context-aware member completions, use kit. module discovery, and symbol imports.
  • Formatting: Format documents through stag-lsp (beta formatter).

Requirements

Install the Stag toolchain (stagc and stag-lsp) from https://stag-lang.github.io or GitHub Releases.

  • Linux / macOS:
    curl -fsSL https://stag-lang.github.io/install.sh | bash
    
  • Windows: Download and run stag-setup-*-windows-x64.exe from GitHub Releases and keep the stag-lsp option enabled.

Extension Settings

Setting Default Description
stag.lsp.enabled true Enable or disable the native Stag Language Server (stag-lsp).
stag.lsp.path "" Custom path to stag-lsp. Leave empty for automatic detection on PATH and standard install directories.

Commands

  • Stag: Restart Language Server (stag.restartLsp) — restarts the background stag-lsp process.

Links

  • Website & Documentation: https://stag-lang.github.io
  • Compiler Repository: https://github.com/stag-lang/stag
  • License: Apache-2.0
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft