Awesome
<picture> <source media="(prefers-color-scheme: light)" srcset="./images/light/sway.png"> <source media="(prefers-color-scheme: dark)" srcset="./images/dark/sway.png"> <img alt="Sway VSCode Plugin" src="./images/dark/sway.png"> </picture>This extension provides LSP support for the Sway smart contract programming language.
Features
- goto type definition
- find all references
- types and documentation on hover
- inlay hints for types and parameter names
- semantic syntax highlighting
- symbol renaming
- code actions
- imports insertion
Coming Soon
- code completion
- apply suggestions from errors
- workspace symbol search
- ... and many more
Quick start
- Install the Fuel toolchain.
- Ensure
forc-lsp
is installed correctly by enteringforc-lsp --version
into your terminal. - Install the Sway VSCode plugin.
Configuration
This extension provides configurations through VSCode's configuration settings. All configurations are under sway-lsp.*
.