Solidity
๐ Solidity language support for Zed. โฐ and report issues โฉ
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 Solidity. The extension's id is solidity.
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.
๐ Solidity Language Support for Zed
Enhance Zed with Solidity language support, including syntax highlighting and language server features such as diagnostics and more!
Features
Solidity (.sol)
- Syntax highlighting via tree-sitter-solidity
- Diagnostics, completions, go-to-definition, and other LSP features via @nomicfoundation/solidity-language-server
- Code outline, indentation, and bracket matching
Yul (.yul)
- Syntax highlighting via tree-sitter-yul, including recognition of EVM builtins
- Code outline, indentation, and bracket matching
- No LSP support (the Nomic Foundation language server does not support standalone
.yulfiles)
[!Tip] For the best experience, it is highly recommended to use XY-Zed. This extension has been built on top of the XY-Zed theme, ensuring that all colors are thoughtfully chosen to provide intelligent syntax highlighting.

๐ ๏ธ Development Setup
1. Clone the repository
git clone https://github.com/zarifpour/zed-solidity
2. Uninstall the existing extension
If you have the existing extension installed, you need to uninstall it before installing the development version.
3. Load the extension
- Open
zed: extensions. - Click
Install Dev Extension. - Select the
zed-soliditydirectory.
4. Rebuild the extension as needed
As you make changes to the extension, you may need to rebuild it. To do so:
- Open
zed: extensions. - Click the
Rebuildbutton next to the extension.
๐ธ Contributing
Contributions are welcome!
To contribute:
- Fork the repo and create a new branch.
- Make changes and test them.
- Submit a pull request with a clear description.
Check open issues for areas needing improvement. Thanks for helping improve Solidity support in Zed!
๐ Acknowledgments
- @JoranHonig for providing the tree-sitter-solidity repository.
- @meetmangukiya and @tomholford for inspiration with their PRs to the main Zed repo.
Made with ๐ฉต by Daniel Zarifpour