Geneia Language Support for VS Code
Official VS Code extension for the Geneia programming language.

Features
- ✨ Syntax highlighting for
.gn files
- 📝 Code snippets for common patterns
- 🎯 IntelliSense and hover documentation
- ▶️ Run Geneia files directly from VS Code
- 🎨 Bracket matching and auto-closing
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Geneia"
- Click Install
From VSIX
code --install-extension geneia-language-1.0.0.vsix
Usage
Syntax Highlighting
Open any .gn file and syntax highlighting will be applied automatically.
Running Files
- Right-click in editor → "Run Geneia File"
- Or use Command Palette (Ctrl+Shift+P) → "Geneia: Run"
Snippets
Type these prefixes and press Tab:
| Prefix |
Description |
peat |
Print message |
str |
String variable |
hold |
Number variable |
func |
Function definition |
turn |
Loop N times |
repeat |
Repeat with time |
stru |
String uppercase |
timenow |
Current time |
sqrt |
Square root |
convert |
Unit conversion |
hello |
Hello World template |
template |
Basic template |
Syntax Examples
! Hello World !
"This is a tip"
str {name} = 'Geneia'
hold {count} = (10)
peat 'Hello, '
peat {name}
str -u 'uppercase'
time -n
sys -o
gmath -s (16)
gmath -C (100) 'cm' 'in'
turn (3) {
peat 'Loop!'
}
exit (0)
Configuration
| Setting |
Default |
Description |
geneia.compilerPath |
geneia |
Path to Geneia compiler |
geneia.formatOnSave |
true |
Format on save |
Requirements
- VS Code 1.74.0 or higher
- Geneia compiler (optional, for running files)
Links
License
MIT © Moude AI Inc.
| |