VS Code language support for .bsn (Bevy Scene Notation) files: syntax highlighting, formatting, and validation.
Temporary, unofficial. Not affiliated with or endorsed by the Bevy or Jackdaw projects.
Features
- Syntax highlighting for
.bsnfiles (bracket matching, comments, auto-closing pairs) - Format on save / format document, powered by the bundled
bsn-fmtRust CLI - Inline diagnostics — parse errors from
bsn-fmt checkare shown as squiggles when a.bsnfile is opened or saved
Requirements
The formatting and validation features shell out to the bsn-fmt CLI.
-
Windows (x64) and Linux (x64): nothing to do — a prebuilt
bsn-fmtbinary is bundled with the extension. -
macOS or other platforms: no prebuilt binary is bundled yet. Build it yourself:
cd bsn-fmt cargo build --releaseThen either put the resulting binary on your
PATH, or set thebsn.cliPathsetting to its full path.
Syntax highlighting alone works with no extra setup.
Extension Settings
| Setting | Description | Default |
|---|---|---|
bsn.cliPath |
Path to the bsn-fmt executable. Leave empty to look it up on PATH. |
"" |
Usage
- Open a
.bsnfile — syntax highlighting applies automatically. - Run Format Document (
Shift+Alt+F) to reformat viabsn-fmt. - Parse errors surface automatically as diagnostics on open/save.
Try it from source
Open this repo folder in VS Code, press F5 to launch an Extension Development Host, then open example.bsn.
Acknowledgements
Syntax grammar and the example file are based on jbuehler23/jackdaw's jackdaw_bsn, used under the MIT License. See THIRD-PARTY_NOTICES.txt.
License
MIT © 2026 Liam Karl Mitchell