// vscode
ForgeScript for VS Code.
Syntax highlighting, bracket matching, and snippets for .fs files. Works in VS Code, Cursor, Windsurf, VSCodium — any Code-compatible editor.
Preview
# train.fs — example ForgeScript
load "iris" as df
let clean = df
|> drop_na()
|> filter(petal_length > 1.0)
clean
|> group_by(:species)
|> agg(
avg_petal = mean(:petal_length),
n = count(:species)
)
|> sort(:avg_petal, desc = true)Install
- Download and unzip
forgescript-vscode.zip. - Copy the
forgescript-vscodefolder into your VS Code extensions directory:# macOS / Linux ~/.vscode/extensions/forgescript-vscode # Windows %USERPROFILE%\.vscode\extensions\forgescript-vscode - Restart VS Code. Open any
.fsfile — colors should appear automatically.
Or: install from CLI
unzip forgescript-vscode.zip -d ~/.vscode/extensions/
code --install-extension ~/.vscode/extensions/forgescript-vscode # optionalWhat's inside
- TextMate grammar for keywords, strings, numbers, comments, the pipe operator, and aggregators.
- Snippets: type
load,pipe,group,train+ Tab. - Language configuration: bracket matching, line comment with
#, auto-close quotes.