Skip to content

Commit

Permalink
update LSP instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaki committed Mar 4, 2024
1 parent 8619c08 commit b49e17d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion docs/docs/developers/contracts/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ An **Aztec smart contract** is a smart contract with **private** state variables

**Aztec.nr** is a framework for writing Aztec smart contracts, written in Noir.

Futher Nomenclature can be found [here](https://github.com/AztecProtocol/dev-rel/blob/main/NOMENCLATURE.md).

# Getting started

## Install aztec-nargo
Expand All @@ -34,7 +36,12 @@ For those coming from vanilla Noir, the version used for aztec.nr is tracked sep

Install the [Noir Language Support extension](https://marketplace.visualstudio.com/items?itemName=noir-lang.vscode-noir) to get syntax highlighting, syntax error detection and go-to definitions for your Aztec contracts.

Once the extension is installed, go to your VSCode settings, search for "noir" and update the `Noir: Nargo Path` field to point to your `aztec-nargo` executable.
Once the extension is installed, check your nargo binary by hovering over `Nargo` in the status bar. Then click to set this to choose the path to `aztec-nargo`.

:::tip
To specify a custom nargo executable, go to the VSCode settings and search for "noir", or click extension settings on the `noir-lang` LSP plugin.
Update the `Noir: Nargo Path` field to point to your desired `aztec-nargo` executable.
:::tip

You can print the path of your `aztec-nargo` executable by running:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@ Congratulations, you have now written, compiled, and deployed your first Aztec.n

Install the [Noir Language Support extension](https://marketplace.visualstudio.com/items?itemName=noir-lang.vscode-noir) to get syntax highlighting, syntax error detection and go-to definitions for your Aztec contracts.

Once the extension is installed, go to your VSCode settings, search for "noir" and update the `Noir: Nargo Path` field to point to your `aztec-nargo` executable.
Once the extension is installed, check your nargo binary by hovering over `Nargo` in the status bar. Then click to set this to choose the path to `aztec-nargo`.

:::tip
To specify a custom nargo executable, go to the VSCode settings and search for "noir", or click extension settings on the `noir-lang` LSP plugin.
Update the `Noir: Nargo Path` field to point to your desired `aztec-nargo` executable.
:::tip

You can print the path of your `aztec-nargo` executable by running:

Expand Down

0 comments on commit b49e17d

Please sign in to comment.