Syntax highlighting, snippets, and language configuration for U. Works in VS Code, JetBrains IDEs, Sublime Text, TextMate, and any editor that supports TextMate grammars.
Full support: syntax highlighting, 15 snippets, bracket matching, auto-indentation,
code folding, and .u / .gen.u file association.
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:
| Prefix | Expands to |
|---|---|
fn | Function declaration |
ufn | AI-managed function with @intent tag |
afn | Async function |
zfn | Compile-time function |
dt | Data type (class) |
guard | Guard clause (condition ? x Error()) |
txn | Transaction block (<< ( ... )) |
map | items.map(val => ...) |
ret | r => expr |
throw | x ErrorType() |
@intent | Intent doc tag for u f |
JetBrains IDEs support TextMate bundles natively.
1. Download: u.tmLanguage.json 2. In your IDE: Settings → Editor → TextMate Bundles 3. Click + and select the downloaded file 4. Restart the IDE
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
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.
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