Sui Profile picture
Sui
Layer 1 blockchain designed to make digital asset ownership fast, private, secure, and accessible to everyone. Twitter by @SuiFoundation. RT ≠ endorsement.

Jul 12, 2022, 9 tweets

Move VSCode plugin is available to download here: bit.ly/move-analyzer

Difficulty with more traditional smart contract languages that #MoveLang is trying to solve is code composition & reuse. New VSCode plugin delivers a set of features that can aid developers. A thread 🧵

The new features provided by the current version of move-analyzer’s language server include:

▫️ Type on hover
▫️ Go to definition
▫️ Go to type definition
▫️ Find references
▫️ Error reporting

Type on hover:
When encountering identifier in unknown code base, you may not know the type of the identifier. If you hover a cursor over the name of an identifier, you will see the name of this identifier displayed in a tooltip.

Go to definition:
Another piece of information about an identifier that may not be obvious is where this identifier is defined. Right-click on identifier name & choose "Go to Definition" option. Your cursor will be transported to location of identifier’s definition.

Go to type definition:
It's not trivial to locate an identifier's type definition. Right-click on the identifier name & choose "Go to Type Definition" option. Your cursor will be transported to where the type of this identifier is defined.

Find references:
Right-click on identifier name & choose "Find All References" option. All occurrences of this identifier will be displayed in the left pane of the VSCode editor window.

Error reporting:
In new version of VSCode plugin, we introduce displaying compiler diagnostics in editor window. Whenever you save file, language server will run compiler in background & send resulting output back to VSCode to be displayed.

The new VSCode plugin delivers a set of features that can aid developers in better understanding their entire code base. Dive more into it here: bit.ly/3OKamBe

That's a wrap! If you enjoyed this thread:

1. Follow @Mysten_Labs for more of these
2. Join our Sui AMA this week featuring our #MoveLang Dev Team

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling