This extension integrates Cadence, the resource-oriented smart contract programming language of Flow, into Visual Studio Code. It provides features like syntax highlighting, type checking, code completion, etc.
- Syntax highlighting (including in Markdown code fences)
- Diagnostics (errors and warnings)
- Type information on hover
- Go to declaration
- Code completion
- Run the emulator, submit transactions, scripts from the editor
To install the extension, ensure you have VS Code installed
and have configured the code
command line interface.
The recommended way to install the latest released version is to use the Flow CLI.
First, install the Flow CLI.
Check that it's been installed correctly.
flow version
Next, use the CLI to install the VS Code extension.
flow cadence install-vscode-extension
Restart VS Code and the extension should be installed!