spy-lang — VSCode extension for
|
| 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 ruffOr 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
}
}