Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Tera LanguageNew to Visual Studio Code? Get it now.
Tera Language

Tera Language

Sinh Truong

|
2 installs
| (1) | Free
Syntax highlighting, diagnostics and IntelliSense for Tera (.tera) — tensor algebra & neural network DSL.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Tera Language

Language support for Tera (.tera) — a tensor algebra & neural network DSL.

Syntax highlighting, diagnostics, and IntelliSense powered by a built-in language server.

Features

  • Syntax highlighting for tensors, models, functions, and control flow
  • Diagnostics — type errors and undefined names reported as you type
  • IntelliSense — completions for builtins, tensor methods, and modules
  • Snippets for common patterns (models, layers, training loops)
  • Bracket matching, auto-indent, and comment toggling

Example

x = tensor([[1, 2], [3, 4]])
w = randn([2, 3])
y = (x @ w).relu()

model MLP(input: int, hidden: int, output: int):
  fc1 = Linear(input, hidden)
  fc2 = Linear(hidden, output)

  forward (x: Tensor) -> Tensor:
    x = fc1(x).relu()
    return fc2(x)

net = MLP(2, 4, 1)
print(net(randn([8, 2])).shape)

Requirements

VS Code ^1.94.0. The extension activates automatically when you open a .tera file.

Settings

Setting Default Description
tera.trace.server off Trace LSP communication between VS Code and the Tera language server (off / messages / verbose).

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft