Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>UniFFI UDL SyntaxNew to Visual Studio Code? Get it now.
UniFFI UDL Syntax

UniFFI UDL Syntax

matislovas

|
1 install
| (0) | Free
Syntax highlighting and editor support for UniFFI Definition Language (.udl) files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

UniFFI UDL Syntax Highlighting

A Visual Studio Code extension for UniFFI Definition Language (.udl) files.

The grammar follows the UniFFI UDL guide and uses the existing uniffi-dl JetBrains plugin in this repository as a reference for keywords, literals, comments, and punctuation.

Features

  • Associates .udl files with the udl language id.
  • Provides TextMate syntax highlighting for:
    • UniFFI/WebIDL declarations such as namespace, dictionary, interface, enum, callback, and typedef.
    • Built-in scalar, container, string, buffer, and promise types.
    • Extended attributes such as [Throws=...], [Error], [Enum], [Trait], [WithForeign], [ByRef], and [Name=...].
    • Line comments, block comments, strings, numbers, nullable types, and punctuation.
  • Adds bracket pairing, auto-closing pairs, comment toggling, folding markers, and common UDL snippets.

Development

Open this folder in VS Code and press F5 to launch an Extension Development Host.

npm test

The test script validates the extension manifest and JSON contribution files.

Example

namespace sprites {
  Point translate([ByRef] Point position, Vector direction);
};

dictionary Point {
  double x;
  double y;
};

[Error]
enum SpriteError {
  "OutOfBounds",
};

References

  • UniFFI UDL guide: https://mozilla.github.io/uniffi-rs/next/udl/index.html
  • WebIDL grammar: https://webidl.spec.whatwg.org/#idl-grammar
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft