VS Code Extensions
Minimal SPy language support

Minimal SPy language support

by spy-lang

Syntax highlighting, indentation, comments and Ruff formatting for .spy files

Downloads

15

Rating

— (0)

Version

0.1.1

Last updated

May 05, 2026

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)

Add this to your .vscode/settings.json:

{
  "[spy]": {
    "editor.defaultFormatter": "spy-lang.spy-language",
    "editor.formatOnSave": true,
    "editor.tabSize": 4,
    "editor.insertSpaces": true
  }
}

Related extensions