Move Analyzer VS Code Extension
The Move Analyzer extension for Visual Studio Code provides language support features for the Move programming language. It enables syntax highlighting, code completion, and advanced features like definition linking and type checking.
Install
You can install the Move extension from the Visual Studio Code Marketplace:
- Open VS Code.
- Open the Extensions view (⇧ + ⌘ + X on macOS, Ctrl + Shift + X on Windows/Linux).
- Search for
mysten.move. - Click Install on the Move extension by Mysten Labs.
Alternative install methods include:
-
Use Ctrl + P or ⌘ + P and type
ext install mysten.move. -
Use the command line:
$ code --install-extension mysten.move
The following extensions are included in the Move extension install:
Install move-analyzer
The Move extension attempts to install the appropriate move-analyzer binary for your platform. If this doesn't work, or you prefer to install it manually, build it with Cargo:
$ cargo install --git https://github.com/MystenLabs/sui.git sui-move-lsp
By default, the Move extension expects to find the move-analyzer binary in ~/.sui/bin. You can either copy the binary to this location, or configure the extension to use a different path.