The VS Code Gno extension provides rich language support for the Gno Programming Language
- Visual Studio Code 1.75 or newer
- Go 1.21 or newer
- Gno
Whether you are new to Gno or an experienced Gno developer, we hope this extension fits your needs and enhances your development experience.
- Install Go 1.21 or newer and Gno if you haven't already.
- Clone the repository, run npm ci, and open VS Code:
git clone https://github.com/gnoverse/vscode-gno cd vscode-gno/extension npm ci code .
- To run the extension, open the Run view (Ctrl+Shift+D or ⌘+⇧+D), select Launch Extension, and click the Play button (F5). This will open a new VS Code window with the title [Extension Development Host]. You can then open a folder that contains Gno code and try.
- The extension depends on gno, gnopls the Gno language server. If gnopls is missing, the extension will try to install it.
You are ready to Gno :-) 🎉🎉🎉
Table showing the new features of this plugin compared with the old version.
vscode-gno | Old Version | New version |
---|---|---|
Highliting | ✅ | ✅ |
Formating | ✅ | ✅ |
Intellisense | ✅ | ✅ |
Transpile | ✅ | ✅ |
Clean | ✅ | ✅ |
Test Package | ✅ | ✅ |
Test File | ✅ | ✅ |
Test Function | ✅ | ✅ |
Test At Cursor | ❌ | ✅ |
Test All Packages In Workspace | ❌ | ✅ |
Mod Init | ✅ | ✅ |
Maketx | ✅ | ✅ |
Find References | ❌ | ✅ |
Find Implementations | ❌ | ✅ |
Go To Symbol | ❌ | ✅ |
Call Hierarchy | ❌ | ✅ |
Toggle Between Code And Tests | ❌ | ✅ |
Add Import | ❌ | ✅ |
Rename Symbol | ❌ | ✅ |
Refactor | ❌ | ✅ |
Auto Install Missing Tools | ❌ | ✅ |
Lint | ❌ | ⏳ |