junhoyeo / move-formatter

A formatter for the SUI move language with development features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SUI Development Move Formatter

This formatter exists because Mystenlabs has not yet created a formatter for Move code that uses the most up-to-date development features. This formatter aims to support:

  • Nested Use
  • Public Package
  • Postfix Abilities
  • Struct Type Visibility
  • Dot Call
  • Positional Fields
  • LetMut
  • Block Labels
  • Move 2024 Paths
  • No Parens Cast
  • Enum definitions
  • Match statements
  • Clever Assertions

Local installation for Visual Studio Code

yarn

Compile the binary: yarn build

Build the vsce (Visual Studio Code Extensions) package: yarn package

Debug run the extension: F5 output is visible in OUTPUT (next to the terminal) when selecting Log (Extension Host) at the top right

Install the extension: yarn install:local

About

A formatter for the SUI move language with development features.

License:Apache License 2.0


Languages

Language:Rust 51.7%Language:TypeScript 48.3%