Movefmt integration
The plugin features integration with MoveBit's movefmt code formatter.
Download movefmt
executable
Run
$ aptos update movefmt
Enter Y
when prompted and wait for the download to finish.
Remember the path of the resulting binary at the end of the command output
Downloading...
Extracting archive... Moving binary file to ~/.local/bin... Done
{
"Result": "Successfully installed movefmt v1.0.6"
}
Configure Move on Aptos plugin to use the formatter
Open File | Settings..., then select Languages & Frameworks | Aptos | Movefmt
Select path of the movefmt
binary in the Movefmt:
field and enable Use movefmt instead of the built-in formatter
.
Usage
Reformat currently opened file
Open the file you'd like to reformat.
Press Ctrl+Alt+L or select Code | Reformat Code from the main menu.
Last modified: 03 December 2024