VSCode Extension
The AIVI Language Support extension for Visual Studio Code provides a comprehensive development environment for Aivi.
Features
- Syntax Highlighting: Robust TextMate-based grammar for
.aivifiles. - LSP Integration: Automatically starts the
aivi lspserver to provide advanced features like:- Go to Definition / References
- Hover information
- Autocomplete
- Renaming
- Real-time Error Reporting
- Formatting: Integrated formatter support (
Shift + Alt + For Format on Save). - EBNF Support: Syntax highlighting for
.ebnffiles (used in Aivi development).
Configuration
This extension contributes the following settings to VSCode:
| Setting | Default | Description |
|---|---|---|
aivi.format.indentSize | 2 | Number of spaces to use for indentation. |
aivi.format.maxBlankLines | 1 | Maximum number of consecutive blank lines allowed by the formatter. |
Installation
The extension is currently distributed as a .vsix file. You can install it manually in VSCode:
- Open the Command Palette (
Ctrl+Shift+P). - Type "Extensions: Install from VSIX...".
- Select the
aivi-vscode-x.y.z.vsixfile.
(Roadmap: Publish to Visual Studio Marketplace)