Circuitscript VSCode Extension
A VSCode extension providing language support and live preview for Circuitscript (.cst) files.
Features
Language Support
- Syntax highlighting for
.cst files
- Real-time diagnostics (syntax and runtime errors)
- Code completion for built-in methods
- Powered by an integrated Language Server Protocol (LSP) implementation
Live Preview
- Open a live schematic preview panel alongside your editor
- Preview auto-updates as you switch between
.cst files
- Interactive zoom (buttons, mouse wheel) and pan (mouse drag) controls
- Error display when compilation fails
- Export KiCad Netlist — generate a
.net KiCad netlist file from the active .cst document
- Apply Refdes — automatically annotate reference designators in your source file
Usage
- Open any
.cst file in VSCode — language features activate automatically.
- Open the Command Palette (
Cmd+Shift+P / Ctrl+Shift+P) and run Circuitscript: Preview schematic to open the live preview panel.
- Edit your
.cst file; the preview updates whenever you save or switch documents.
- Use the toolbar buttons in the preview panel to export a KiCad netlist or apply refdes annotations.
Commands
| Command |
Description |
Circuitscript: Preview schematic |
Open live SVG preview panel |
Circuitscript: Export SVG |
Save the current schematic as an SVG file |
Circuitscript: Export PDF |
Save the current schematic as a PDF file |
Circuitscript: Export KiCad Netlist |
Generate a .net KiCad netlist from the active .cst file |
Circuitscript: Export BOM |
Save a bill of materials as a CSV file |
Circuitscript: Apply Refdes |
Automatically annotate reference designators in the source file |
| |