Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>WIT (WebAssembly Interface Types)New to Visual Studio Code? Get it now.
WIT (WebAssembly Interface Types)

WIT (WebAssembly Interface Types)

Dave Bakker

|
430 installs
| (0) | Free
Language support for *.wit files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

WIT (WebAssembly Interface Types)

VS Code support for working with WebAssembly Component Model Interface Type files.

Features:

  • *.wit Syntax highlighting.
  • Basic markdown highlighting in comments.
  • Automatically continues doc-comments on next line.
  • Simple list-based autocomplete of:
    • WIT keywords,
    • WIT builtin types,
    • Common WASI packages & interfaces

demo screenshot

Known issues

Due to the simplicity of the current lookahead scheme, there are some limitations:

Parentheses and brackets must open on the same line as the item they're opening.

Curly braces work fine, though.

✅ Works:

export log: func(
	msg: string
) -> result<
	_,
	err
>

❌ Broken:

export log: func
(
	msg: string
) -> result
<
	_,
	err
>

Return type annotations must start on the same line as the closing parenthesis of the parameter list.

✅ Works:

export log: func(msg: string) -> result<_ err>

export magic: func(
	a: u32,
	b: u32
) -> (
	c: u32,
	d: u32
)

❌ Broken:

export log: func(msg: string)
	 -> result<_ err>

export magic: func(
	a: u32,
	b: u32
)
->
(
	c: u32,
	d: u32
)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft