Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Minimal SPy language supportNew to Visual Studio Code? Get it now.
Minimal SPy language support

Minimal SPy language support

spy-lang

| (0) | Free
Syntax highlighting, indentation, comments and Ruff formatting for .spy files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

spy-lang — VSCode extension for .spy files

Gives .spy files full Python-like editing support without Pylance diagnostics.

Features

Feature How it works
Syntax highlighting Inherits Python's TextMate grammar
Tab / Enter indentation Python-identical onEnterRules + indentationRules
Comment / uncomment # line comments, """ block comments (Ctrl+/ / ⌘/)
Ruff formatting Pipes the file through ruff format on demand or on save

Requirements

  • Ruff must be installed and available in PATH:*

    uv tool install ruff
    

    Or set the full path in settings:

    "spy.formatting.ruffPath": "/path/to/ruff"
    

Extension settings

Setting Default Description
spy.formatting.enabled true Enable/disable Ruff formatting
spy.formatting.ruffPath "" Path to ruff binary (leave empty to use PATH)

Recommended workspace settings

Add this to your .vscode/settings.json:

{
  "[spy]": {
    "editor.defaultFormatter": "spy-lang.spy-language",
    "editor.formatOnSave": true,
    "editor.tabSize": 4,
    "editor.insertSpaces": true
  }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft