Solidity language support for Zed powered by the Solar language server.
- Syntax highlighting with tree-sitter
- Code completion and diagnostics via Solar LSP
- Automatic Solar binary installation
- Code formatting with
forge fmt(if installed) - Cross-platform support
Install from Zed's extension registry by searching for "Solar" in the extensions panel (Cmd+Shift+P → "zed: extensions").
This extension automatically configures forge fmt as the default Solidity formatter if Foundry is installed on your system.
- Format on save: Enable in Zed settings with
"format_on_save": "on" - Manual formatting: Use
Cmd+Shift+I(macOS) orCtrl+Shift+I(Linux/Windows) - No Foundry?: Formatting will be disabled if
forgeis not found (no errors) - Custom formatter: Override in your Zed settings if you prefer a different formatter
To disable formatting entirely, add this to your Zed settings:
{
"languages": {
"Solidity": {
"formatter": null
}
}
}Dual licensed under MIT or Apache-2.0.