Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>HausNew to Visual Studio Code? Get it now.
Haus

Haus

Preview

Betalyra

|
1 install
| (0) | Free
Highlighting, errors, inferred types on hover, formatting and schema inference for the haus data format
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

haus for VS Code

⚠️ Experimental, like haus itself.

Editor support for .haus data files and .schema.haus schemas. Learn the format at haus-fmt.org.

Features

  • 🎨 Highlighting for .haus and .schema.haus; raw bidi control characters are marked as errors.
  • 🚨 Errors as you type, e.g. { ok: true } → booleans are the variants True / False.
  • 🔍 Hover with inferred types: hover any key or value to see the type merged over the whole file. In Person { type: Engineer }, Person { type: Designer }, hovering type shows < Engineer | Designer >. Exact numbers warn when a Float64 would round them.
  • 🧭 Outline of fields, items and variants (Cmd+Shift+O).
  • ✨ Formatting:
    • Format Document (Shift+Alt+F) or haus: Pretty Print gives one entry per line and keeps comments.
    • haus: Compact puts every item on one line and drops comments.
  • 📐 haus: Infer Schema from This File opens a .schema.haus draft (command palette or the editor title bar).

Try it on person.haus, or on the recursive thread.haus, filesystem.haus and settings-ui.haus.

Settings

Format on save is not switched on by the extension. If you have it on globally and don't want it for haus:

"[haus]": { "editor.formatOnSave": false }

Develop

Press F5 in the repo root ("haus extension (dev host)" in .vscode/launch.json). A second window opens running the extension from this folder, with examples/ open. Run pnpm watch alongside, and reload that window after changes.

To try a packaged build:

cd editors/vscode
pnpm install
pnpm run package                              # builds haus.vsix
code --install-extension haus.vsix --force

Don't symlink this folder into ~/.vscode/extensions: VS Code caches the manifest and gets confused when the version changes.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft