Sui Move Analyzer
Language server support for Sui Move smart contract development in VS Code.
Features
- Code Completion — Context-aware suggestions for modules, functions, types, and fields
- Go to Definition — Navigate to symbol definitions across your project
- Find References — Find all usages of functions, types, and variables
- Hover Information — View type signatures, documentation, and symbol details
- Diagnostics — Real-time error and warning detection
- Rename — Safely rename symbols across your project
- Semantic Highlighting — Enhanced syntax highlighting with semantic tokens
- Inlay Hints — Inline type annotations and parameter names
- Code Actions — Quick fixes for common issues
Installation
1. Install this Extension
Install Sui Move Analyzer from the VS Code Marketplace.
2. Install the Language Server Binary
Download a pre-built binary:
# macOS (Apple Silicon)
curl -L -o sui-move-analyzer https://github.com/KlyntLabs/sui-move-lsp/releases/latest/download/sui-move-analyzer-aarch64-apple-darwin
chmod +x sui-move-analyzer
sudo mv sui-move-analyzer /usr/local/bin/
# macOS (Intel)
curl -L -o sui-move-analyzer https://github.com/KlyntLabs/sui-move-lsp/releases/latest/download/sui-move-analyzer-x86_64-apple-darwin
chmod +x sui-move-analyzer
sudo mv sui-move-analyzer /usr/local/bin/
# Linux (x86_64)
curl -L -o sui-move-analyzer https://github.com/KlyntLabs/sui-move-lsp/releases/latest/download/sui-move-analyzer-x86_64-unknown-linux-gnu
chmod +x sui-move-analyzer
sudo mv sui-move-analyzer /usr/local/bin/
Or build from source:
git clone https://github.com/KlyntLabs/sui-move-lsp.git
cd sui-move-lsp
cargo build --release
sudo cp target/release/sui-move-analyzer /usr/local/bin/
3. Verify
sui-move-analyzer --version
Open a Sui Move project (with Move.toml) in VS Code — the extension activates automatically.
Configuration
| Setting |
Default |
Description |
suiMoveAnalyzer.server.path |
sui-move-analyzer |
Path to the language server binary |
suiMoveAnalyzer.server.logLevel |
info |
Log level: error, warn, info, debug, trace |
suiMoveAnalyzer.trace.server |
off |
LSP trace: off, messages, verbose |
Troubleshooting
If the extension fails to start, check:
- The binary is installed and on PATH:
which sui-move-analyzer
- The Output panel (
View > Output > Sui Move Analyzer) for error messages
- Your project has a
Move.toml at the workspace root
For more help, see the Troubleshooting Guide.
Links
License
Apache License 2.0