foo.iv for VS Code
FOO language support for Visual Studio Code. Open any .iv file to get syntax highlighting, file icons, bracket handling, comment shortcuts, indentation, and ready-made snippets.

Install
Open Extensions in Visual Studio Code, search for foo.iv, select the extension published by radiiplus, and choose Install.
To install a downloaded package instead, open the Extensions view, choose Install from VSIX, and select foo.iv-2.0.0.vsix.
Use FOO Files
Files ending in .iv open in FOO language mode automatically. The active language appears as FOO in the status bar.
function greet(name of type text) of type nothing {
display "Hello, " plus name.
give nothing.
}
start() {
greet("world").
give nothing.
}
The extension highlights declarations, control flow, types, functions, constants, strings, numbers, comments, properties, attributes, native blocks, and invalid syntax. Its FOO-specific colors work alongside the selected VS Code theme.
Snippets
Start typing one of these names and select the FOO suggestion:
| Prefix |
Inserts |
function |
Function declaration |
test |
Test block |
when |
Conditional block |
for each |
Collection loop |
constant |
Constant declaration |
native |
Native block |
Use -- for line comments and --- ... --- for block comments. Quotes, brackets, and braces close automatically, and indentation follows FOO blocks.
Mixed .iv Projects
If another extension also claims .iv files, open the language selector in the status bar and choose FOO. You can keep that choice for a workspace with a file association:
{
"files.associations": {
"*.iv": "foo"
}
}
Documentation And Support
License
FOO for VS Code is available under the MIT License.