VS Code / Cursor extension for Visualfiles (.vf) scripts: TextMate syntax highlighting, IntelliSense, and a Document Formatting provider.
Features
Syntax highlighting for commands [&Name ...], strings, fields (LF20, CRT03:text), operators (&IsOneOf), and comments (any text not starting with [, including trailing text after ])
IntelliSense for common Visualfiles commands, operators, and functions, plus hover help for supported items
Format Document — 3-space indent for If/Else/EndIf, ForEach/EndFor, Sub/EndSub, DoWhile/EndDoWhile; space after commas outside strings
Optional Visualfiles Classic light theme (red commands / blue fields / green strings / grey comments)
Development
npm install
npm run compile
Press F5 (Run Extension) to open an Extension Development Host with this extension loaded. Open a file under examples/ to try highlighting and Format Document (Shift+Alt+F).
Smoke-test the formatter (no VS Code host required):
npm run compile
npm run test:format
Language notes
Rule
Behavior
Commands
Must start with [ — e.g. [&Assign LF20=0]
Comments
Lines (or trailing segments) without a leading [
Indent
3 spaces per block level
Commas
Prefer , outside strings; spaces around = are left alone
Multi-command lines
Not force-split
Current limits
Diagnostics and full command coverage are still incomplete. The current IntelliSense is a curated first pass based on common Visualfiles scripting constructs.