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 red squiggles right as you type.
- Smart Indentation & Pairing: Python-like clean indentation rules, auto-closing quotes, brackets, and colons.
- Official Icons: Distinctive FrontLang file icon for
.ft 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).
- One-Click Execution:
F5 / Ctrl+F5: Run active FrontLang file in the integrated terminal.
- 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.
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 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 |
About FrontLang
FrontLang is designed & owned by FrontTerrain. It combines Python's elegant indentation-based syntax with C's native performance, zero-dependency architecture, and modern Flutter-grade vector typography and UI widgets.
For documentation and tutorials, visit the FrontLang Repository.