Noir VSCode Extension
Install the Noir Language Support extension to get syntax highlighting, syntax error detection, and go-to definitions for your Aztec contracts.
The extension drives its language server with nargo. The Aztec installer installs its own version of nargo and adds that directory to your PATH, so in most cases you do not need to configure anything else. Verify the binary is on your PATH:
which nargo
# expected: $HOME/.aztec/<path to nargo binary>
If you have not installed the Aztec toolchain yet, follow Getting Started on Local Network first.
Configure the extension
Leave the extension's Noir: Nargo Path setting empty so it auto-discovers nargo from your PATH. To confirm, hover over Nargo in the VSCode status bar in the bottom right corner — it should show the path under the result from which nargo.
If auto-discovery fails, set Noir: Nargo Path to the absolute path printed by which nargo, then reload the window.
Troubleshooting
- LSP reports
startFailedafter setting a custom path: clearNoir: Nargo Path, reload the window, and let auto-discovery take over. which nargopoints outside$HOME/.aztec/current/bin: anothernargoearlier on yourPATHis shadowing the Aztec-provided one. Either remove it or setNoir: Nargo Pathexplicitly to the Aztec-providednargo.