![]() ![]() ![]() In case you're hoping to learn Motoko without installing dfx, the Motoko VS Code extension works standalone on all major operating systems (including Windows).Quickly convert between Motoko types using code snippets such as array-2-buffer or principal-2-text.Vessel and MOPS (the two most popular Motoko package managers) are supported out-of-the-box in this extension.IntelliSense ( Ctrl + Space): view all available auto-completions and code snippets.Go to definition ( F12): jump to the definition of a local or imported identifier.while hovering over an unresolved variable): show import quick-fix options. Organize imports ( Shift + Alt + O): group and sort imports at the top of your Motoko file. ![]() Code formatter ( Shift + Alt + F): format a Motoko file using prettier-plugin-motoko.Keyboard shortcuts īelow are the default key bindings for commonly used features supported in the extension: VSCodium users can download the extension from Open VSX or the GitHub releases page. Install the extension through the VS Marketplace, or alternatively the Extensions panel in your VS Code project. Try the extension in your browser with a full-stack Vite + React + Motoko starter project: The Motoko VS Code extension provides type checking, formatting, autocompletion, go-to-definition, code snippets, and more for Motoko canister development. Visual Studio (VS) Code is a widely used open-source IDE which supports canister development in Motoko and Rust. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |