VS Code Extension Guide
The official RayQuiro VS Code extension provides syntax highlighting, auto-completion, code formatting, and interactive debugging directly inside your editor.
1. Installation
Section titled “1. Installation”Install the .vsix extension package:
- Download
rayquiro-0.2.0.vsixfrom GitHub Releases. - In VS Code, open the Extensions view (
Ctrl+Shift+XorCmd+Shift+X). - Click the
...menu at the top of the Extensions view. - Select Install from VSIX… and choose the downloaded file.
2. Features
Section titled “2. Features”Syntax Highlighting
Section titled “Syntax Highlighting”Full syntax coloring for .rq files, including:
- Keywords (
fn,var,struct,import,while,if,return,throw,try,catch,finally) - Literals (numbers, strings, booleans, null)
- Operators (
??,?.,==,!=, etc.) - Built-in namespaces (
fs,json,datetime,crypto,engine,web,ui)
In-Editor Debugging (F5)
Section titled “In-Editor Debugging (F5)”To debug a RayQuiro script:
- Open your
.rqfile. - Set breakpoints by clicking in the left margin next to line numbers.
- Press F5 to start debugging.
- The extension communicates directly with
rqio debug --port 4711. - You can inspect local and global variables, step through lines (
F10), step into functions (F11), and evaluate expressions in the Debug Console.
Code Formatting
Section titled “Code Formatting”Format any document on save or by pressing Shift+Alt+F (Windows/Linux) or Shift+Option+F (macOS). The extension automatically invokes rqio fmt.