Arduino
Arduino language support with syntax highlighting and arduino-language-server integration.
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Arduino. The extension's id is arduino.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Arduino for Zed
Arduino language support for Zed, with syntax highlighting and arduino-language-server integration.
Features
- Dedicated Arduino language for
.inofiles (instead of C++) - Syntax highlighting via tree-sitter-arduino
- Code outline, bracket matching, indentation, and text objects
- Auto-download of
arduino-language-serverandarduino-cli
Requirements
The language server requires clangd installed on your system:
- macOS:
brew install llvm - Ubuntu/Debian:
sudo apt install clangd - Arch:
sudo pacman -S clang - Fedora:
sudo dnf install clang-tools-extra
Configuration
To get full LSP support (diagnostics, autocomplete, go-to-definition), set your board's FQBN in .zed/settings.json:
{
"lsp": {
"arduino-language-server": {
"binary": {
"arguments": ["-fqbn", "arduino:avr:uno"]
}
}
}
}
Replace arduino:avr:uno with your board. Run arduino-cli board listall to find available FQBNs.