Ita Language for Visual Studio Code
Syntax highlighting, semantic themes, and snippets for the Ita programming language.
Ita ("stone" in ancient Tupi) is a strongly-typed, immutable-by-default, functional-first language that compiles to Dart Kernel (.dill) and runs on the Dart VM.
Features
Syntax Highlighting
Full TextMate grammar with 78 patterns across 27 categories, covering all Ita constructs:
- Types:
struct, class, enum, trait, actor
- Functional:
match, guard, where, pipe |>, compose >>
- Async:
async/await, stream/emit, spawn
- Error handling:
Result, Option, panic, try ?
- 35+ built-in namespaces:
Http, File, Json, Crypto, etc.
Semantic Themes
Two themes (dark and light) with 76 unique colors organized in 7 semantic families that teach language concepts through color:
| Family |
Color |
Concepts |
| Value types |
Green/Teal |
struct, let, const, enum, trait |
| Reference types |
Orange/Coral |
class, var |
| Async |
Purple/Lilac |
async, await, actor, spawn |
| Streaming |
Ocean Blue |
stream, emit |
| Functional |
Cyan |
match, guard, where, \|>, >> |
| Error handling |
Gold/Amber |
panic, ?, Result, Option |
| Unsafe |
Red |
unsafe, mut, ! |
Snippets
42+ snippets for rapid development:
| Prefix |
Description |
fn |
Function declaration |
afn |
Async function |
sfn |
Stream function with emit |
struct |
Struct (value type) |
class |
Class with init |
enum |
Enum with variants |
trait |
Trait (protocol) |
impl |
Trait implementation |
match |
Pattern matching |
guard |
Guard let (unwrap or return) |
actor |
Actor declaration |
spawn |
Spawn actor |
pipe |
Pipe chain |
server |
HTTP server boilerplate |
let |
Immutable binding |
var |
Mutable binding |
for |
For in loop |
import |
ES6-style import |
And many more. Type a prefix and press Tab to expand.
Editor Features
- Auto-closing brackets, quotes, and block comments
- Bracket matching and rainbow brackets support
- Smart indentation
- Code folding with
// region / // endregion
- Comment toggling (line and block)
File Extension
Ita source files use the .tu extension (from "Tupi", the indigenous language that gave Ita its name).
Installation
From Marketplace
Search for "Ita Language" in VS Code Extensions, or:
ext install GabrielAderaldo.ita-language
From VSIX
# Download the latest .vsix from GitHub Releases
code --install-extension ita-language-0.1.0.vsix
Learn More
License
MIT
| |