Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Spec File LinksNew to Visual Studio Code? Get it now.
Spec File Links

Spec File Links

cormorantgames

|
2 installs
| (0) | Free
Syntax highlighting, go to definition, and Ctrl+Click navigation for Foundry .spec files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Spec File Links (VS Code / Cursor extension)

Provides:

  • Syntax highlighting for .spec (Foundry DSL): XML-style tags plus Foundry comments (//, /* */, <!-- -->), line-leading Foundry keywords, and line-leading C#-style keywords (e.g. var, return, public, async) for script inside function / spec bodies. Full C# inside a line is not parsed (TextMate limits); use a .cs file or an LSP later if you need deeper coloring.
  • Diagnostics (red squiggles): mismatched or missing closing tags for XML-style elements (<Tag>…</Tag>, self-closing />), respecting Foundry comments and quoted / {…} attribute values. C-style comparisons in script (i < left, <=, <<) are not treated as XML tags; comparison detection uses same-line lookbehind so a // comment on the previous line cannot hide a real <Tag> on the next line.
  • Ctrl+Click navigation: include '…', XML-style content="…" / src="…", and script .SetAttribute("src", "/…") (absolute path under Assets or relative to the current file), when the target file exists on disk.

Install from a VSIX

  1. Install VSCE if needed: npm install -g @vscode/vsce
  2. From this directory (CoreHustlers/Tools/spec-links): vsce package
  3. In Cursor/VS Code: Extensions → … → Install from VSIX… → select the generated .vsix.

Develop / debug the extension

  1. Open the spec-links folder in Cursor/VS Code (or open the monorepo and use Run and Debug with this extension as the launch target).
  2. Run → Start Debugging (F5) to open a new Extension Development Host window with this extension loaded.
  3. Open a .spec file in the host window and use Developer: Inspect Editor Tokens and Scopes to verify scopes (e.g. comment.line.double-slash, keyword.control.foundry, XML tag scopes from text.xml).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft