A VS Code extension providing language support for TRS-80 Model 100/200 BASIC programming.
Features
Syntax Highlighting: Full syntax highlighting for TRS-80 BASIC with support for:
Keywords (IF, FOR, GOSUB, etc.)
Built-in functions (ABS, SIN, CHR$, etc.)
String, numeric, and special variable types
Comments (REM and apostrophe)
Line numbers
Language Configuration: Proper bracket matching, auto-closing pairs, and indentation rules
IntelliSense & Diagnostics:
Autocomplete suggestions that insert parentheses or spaces based on keyword type
Hover documentation and signature help with parameter and return-type info
Type-aware diagnostics for invalid assignments and function arguments
Supported File Types
.DO - Idiomatic TRS-80 Model 100/200 BASIC program file (supported)
Requirements
VS Code 1.75.0 or higher
Installation
Clone this repository
Run npm install
Press F5 to open the extension development host
Create or open a .DO file to see syntax highlighting
Build & Package
# Install dependencies
npm install
# Build extension
npm run compile
# Package for distribution
npm run vscode:prepublish
Publishing
Tag the release (e.g., git tag v0.2.0 && git push origin v0.2.0).
The Release GitHub workflow runs automatically for tags starting with v, builds the bundled extension, creates a .vsix, and attaches it to the GitHub Release as well as an Actions artifact.
Download the generated .vsix to install manually or use it as the payload for vsce publish.