Greybel VS

GreyScript editing, building, execution, and debugging for Grey Hack in VS Code.
Features
- Syntax highlighting, completion, hover documentation, diagnostics, formatting, symbols, definitions, and references for
.src, .gs, and .ms files.
- Shared
greybel.json project settings and selectable build/run profiles.
- Default, minified, and formatted output, dependency bundling, installer generation, and file imports.
- A persistent mock Grey Hack world or execution in the game through its message hook.
- Breakpoints, stepping, variable inspection, paused evaluation, terminal input/output, and TextMesh Pro output preview.
- Integrated API documentation, comment-based type documentation, snippets, and sharing.
Install
Install from the Visual Studio Marketplace or Open VSX. VS Code 1.90 or later is required.
Quick start
Open a folder, then open a .src, .gs, or .ms file.
Run Greybel: Run file from context from the Command Palette or editor context menu.
Run Greybel: Build file from context to write a build to build/.
Add greybel.json to configure a project entry, build options, run options, and profiles:
{
"entries": ["src/main.src"],
"build": { "mode": "Uglify" },
"run": { "seed": "test" }
}
In-game imports and execution require the desktop extension and the message-hook setup described in the integration guide.
Documentation
| |