OpenQASM 3.0 support for VS Code with LSP integration and runtime execution.
Features
- Syntax Highlighting — Full grammar for OpenQASM 3.0 files (
.qasm) - One-Click Execution — Run QASM files directly from the editor via the play button in the title bar, the context menu, or the keyboard shortcut
- Language Server Protocol — Diagnostics, completions, and more via the QASM language server
- Auto-Update — Automatically downloads the latest binary releases from GitHub
Requirements
- VS Code ^1.75.0
- The QASM language server binary (
qasm-lsp) — the extension will download it automatically on first use, or you can point to a custom path via theqasmLanguageServer.serverPathsetting.
Installation
Install from the VS Code Marketplace, or download and install the .vsix from the GitHub Releases page.
Usage
- Open any
.qasmfile. - Click the play button in the editor title bar, or right-click and select Run QASM File, or press
Cmd+Shift+R(macOS) /Ctrl+Shift+R(Windows/Linux).
Extension Settings
| Setting | Default | Description |
|---|---|---|
qasmLanguageServer.serverPath |
qasm-lsp |
Path to the QASM language server executable |
qasmLanguageServer.trace.server |
off |
Traces VS Code ↔ language server communication |
quantumvm.autoUpdate |
true |
Automatically download binary updates on startup |
Development
- Clone the repo and install dependencies:
git clone https://github.com/wiji1/QuantumVM-VSCode.git cd QuantumVM-VSCode npm install - Compile the TypeScript:
npm run compile - Press
F5in VS Code to launch a new Extension Development Host window. - To package a
.vsixfor distribution, install@vscode/vsceand run:npx @vscode/vsce package
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.