Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>TrilinexNew to Visual Studio Code? Get it now.
Trilinex

Trilinex

Trilinex

|
1 install
| (0) | Free
Language support for Trilinex — the neurotechnology programming language. Syntax highlighting, theme-aware file icons, snippets, and language features for .tlx, .tnt, .ntx, .tn, .ns, and .nsx files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Trilinex — VS Code Extension

Trilinex is the neurotechnology programming language — built for designing spiking neural networks, brain-computer interfaces, neural probes, and biophysical neuron models. Rust-like syntax, built for speed and safety at the hardware-brain boundary.


Features

🌈 Theme-Aware File Icons

The Trilinex "TF" logo appears on every file:

  • Dark mode → white icon (crisp on dark VS Code themes)
  • Light mode → purple-to-cyan gradient icon (matches the brand)

Activates automatically on any Trilinex file:

main.tlx    main.tnt    main.ntx
main.tn     main.ns     main.nsx

✨ Syntax Highlighting

Full semantic highlighting:

  • Neurotech keywords: neuron, synapse, probe, layer, network, spike, fire, inhibit, excite, …
  • Built-in models: LIF, HH, AdEx, LSNN, STDP, Hebbian, SNN, BCI, …
  • Brain region types: MotorCortex, Hippocampus, Thalamus, Cerebellum, …
  • Activation functions: relu, sigmoid, softmax, gelu, swish, …
  • Full Rust-compatible syntax: traits, impls, enums, generics, lifetimes, macros

📐 Snippets

Type a prefix, press Tab:

Prefix Expands to
network Full neural network definition
neuron Custom neuron model
synapse Synapse connection
probe Neural probe / electrode array
lif Leaky Integrate-and-Fire neuron
hh Hodgkin-Huxley biophysical model
stdp Spike-Timing-Dependent Plasticity
snn Spiking Neural Network
eeg EEG signal processing pipeline
bci Brain-Computer Interface
fn, afn Function / async function
impl Implementation block
match, for, while Control flow
spike! Spike event macro

🔧 Smart Editing

  • Auto-closing brackets, braces, quotes
  • // line comments and /* */ block comments
  • /// documentation comment continuation
  • Code folding with // #region markers

Supported File Extensions

Extension Description
.tlx Trilinex main source
.tnt Trilinex neurotechnology module
.ntx Neural topology extension
.tn Trilinex network definition
.ns Neural specification
.nsx Neural specification extension

Enabling the File Icon Theme

  1. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Type "File Icon Theme" → Preferences: File Icon Theme
  3. Choose Trilinex File Icons

Quick Start

// main.tlx — simple spiking neural circuit

#[neurotechnology]
network VisionNet {
    input: [f32; 28 * 28],
    output: [f32; 10],

    layer conv1: Conv2D(filters: 32, kernel: 3, activation: relu),
    layer pool1: MaxPool(size: 2),
    layer fc1:   Dense(128, activation: relu),
    layer out:   Dense(10, activation: softmax),

    fn forward(&self, image: &[f32]) -> Vec<f32> {
        let x = self.conv1.forward(image);
        let x = self.pool1.forward(&x);
        let x = self.fc1.forward(&x);
        self.out.forward(&x)
    }
}

fn main() {
    let model = VisionNet::new();
    let probe = Implant { channels: 128, region: BrainRegion::VisualCortex };
    let signal = probe.record(duration: 1.0 s);
    let result = model.infer(&signal.to_spikes());
    println!("Neural decode: {:?}", result);
}

About Trilinex

Trilinex is a systems programming language for neurotechnology:

  • Biophysical neuron modelling (LIF, HH, AdEx, Izhikevich)
  • Spiking neural networks with STDP/Hebbian learning
  • Brain-computer interface hardware control
  • Real-time signal processing for EEG/LFP/spikes
  • Neural implant firmware

Publisher

trilinex — Visual Studio Marketplace


License

MIT © Trilinex

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft