Editor Support

Syntax highlighting, snippets, and language configuration for U. Works in VS Code, JetBrains IDEs, Sublime Text, TextMate, and any editor that supports TextMate grammars.

VS Code

Full support: syntax highlighting, 15 snippets, bracket matching, auto-indentation, code folding, and .u / .gen.u file association.

Install from ZIP
1. Download: u-language-vscode.zip
2. Unzip into your VS Code extensions folder:

   # macOS / Linux
   unzip u-language-vscode.zip -d ~/.vscode/extensions/u-language

   # Windows
   Expand-Archive u-language-vscode.zip ~\.vscode\extensions\u-language

3. Restart VS Code
4. Open any .u file — highlighting is automatic

Snippets included:

PrefixExpands to
fnFunction declaration
ufnAI-managed function with @intent tag
afnAsync function
zfnCompile-time function
dtData type (class)
guardGuard clause (condition ? x Error())
txnTransaction block (<< ( ... ))
mapitems.map(val => ...)
retr => expr
throwx ErrorType()
@intentIntent doc tag for u f

JetBrains (IntelliJ, WebStorm, CLion, etc.)

JetBrains IDEs support TextMate bundles natively.

Install
1. Download: u.tmLanguage.json
2. In your IDE: Settings → Editor → TextMate Bundles
3. Click + and select the downloaded file
4. Restart the IDE

Sublime Text

Install
1. Download: u.tmLanguage.json
2. Place it in your Packages/User folder:
   # macOS:  ~/Library/Application Support/Sublime Text/Packages/User/
   # Linux:  ~/.config/sublime-text/Packages/User/
   # Windows: %APPDATA%\Sublime Text\Packages\User\
3. Restart Sublime Text

TextMate / Other Editors

Any editor that supports TextMate grammars can use the U grammar file:

Download u.tmLanguage.json Download .plist (XML)

The grammar covers: 13 keywords, 17 scalar types, modifiers (+M, -E, etc.), string interpolation, SQL templates, doc comments with @tag annotations, function and data type declarations, and all operators.

Browser

The playground includes built-in syntax highlighting for U with no installation needed. The UDoc tab shows mechanical documentation in 20 languages, with clickable doc blocks above each function.

Grammar reference

GRAMMAR.md