Bringing Cadence, the resource-oriented smart contract language of Flow, to your VSCode Editor.
InstallationInstall the Cadence extension from the Visual Studio MarketplaceThe extension is also available on the Open VSX RegistryOnce installed, the extension uses the bundled Cadence LSP v2 by default. The Flow CLI is still useful for debugging and CLI-driven workflows, but it is no longer required just to get language features. FeaturesCadence Language ServerThe Cadence extension provides a language server for Cadence. The language server is responsible for providing language features like code completion, diagnostics, and more. The default server is the bundled Cadence LSP v2, managed independently from Flow CLI so editor improvements can ship faster. DebuggingUse the debugger build into VSCode on Cadence files by creating a launch.json file. Make sure to have an emulator connected to enable debugging. Example launch.json
But wait, there's much more than meets the eye. VSCode Cadence extension also offers:
|