FrontLang for Visual Studio Code
Official Visual Studio Code extension providing rich language support for FrontLang (.ft), an independent, statically-typed, indentation-based programming language built from scratch in Rust.
Features
- Rich Syntax Highlighting: Comprehensive TextMate grammar covering keywords, types, control flow, functions, comments, strings, and standard library modules (
std:*).
- Real-Time LSP Diagnostics: Powered by FrontLang's Language Server (
frontlang lsp) for live syntax validation, type mismatch errors, and inline red squiggles right as you type.
- Smart Indentation & Pairing: Python-like clean 4-space indentation rules, auto-closing quotes, brackets, and colons.
- Official Icons: Distinctive FrontLang file icon for
.ft and .ftl files in the VS Code file explorer.
- Code Snippets: Fast completions for functions (
fn), structs, loops, control flow, and UI components (std:ui, std:gui).
- Clean In-Memory Execution:
F5 / Ctrl+F5: Save and run active FrontLang file in the integrated terminal directly on the in-memory Bytecode VM with zero disk footprints (no .c or .exe files cluttering your workspace).
- Editor title bar Play button: Instant file execution.
- Context menu shortcuts: Run FrontLang File and Check FrontLang File.
- Build Bytecode (.ftbc): Compile Ahead-of-Time bytecode directly from the Command Palette (
frontlang.buildBytecode).
Prerequisites
To run and type-check FrontLang programs, make sure the frontlang CLI is installed on your system.
Install FrontLang
Windows (PowerShell)
irm https://raw.githubusercontent.com/FrontTerrain/FrontLang/main/install.ps1 | iex
Linux & macOS (Bash)
curl -fsSL https://raw.githubusercontent.com/FrontTerrain/FrontLang/main/install.sh | bash
Alternatively, build and install from source using Cargo:
cargo install --path .
Extension Settings
This extension contributes the following settings:
frontlang.executablePath: Path to the FrontLang CLI binary (default: frontlang).
Keyboard Shortcuts
| Shortcut |
Command |
Description |
F5 / Ctrl+F5 |
frontlang.runFile |
Save and execute the active .ft file cleanly in-memory |
Shift+Alt+F |
editor.action.formatDocument |
Format document with FrontLang's canonical 4-space formatter |
About FrontLang
FrontLang is designed & owned by FrontTerrain. It combines Python's elegant indentation-based syntax with static typing, zero-dependency architecture, fast Bytecode VM execution, native AOT compilation, and modern Flutter-grade vector typography and UI widgets.
For documentation and tutorials, visit the FrontLang Repository or FrontHub Registry.