Project Description
Title: Multiversx-Tools-Snippets
Overview:
Code Snippets
This extension includes a set of code snippets that can be used for rapid development. All snippets provided by this extension start with the prefix mvx
for easy autocomplete.
CLI Commands
The extension also includes a CLI section featuring commonly used CLI commands, making it easier to interact with Multiversx from the terminal.
Installation
You can install the Multiversx JS SDK Tools and Snippets extension directly from the Visual Studio Code Marketplace. Here's how to do it:
Open Visual Studio Code.
Go to the Extensions view by clicking on the square icon on the left sidebar or using the keyboard shortcut Ctrl+Shift+X
(Cmd+Shift+X on macOS).
Search for "Multiversx JS SDK Tools and Snippets" in the search bar.
Click the "Install" button to install the extension.
Once the installation is complete, you're ready to use the extension.
Usage
Code Snippets
Open a JavaScript or TypeScript file in Visual Studio Code.
Start typing any of the predefined mvx
snippets, and you'll see autocomplete suggestions.
Select a snippet from the list, and the code will be inserted into your file.
CLI Commands
The extension provides quick access to commonly used CLI commands for Multiversx. To use them, follow these steps:
Open the integrated terminal in Visual Studio Code by going to the Terminal
menu and selecting New Terminal
.
In the terminal, type one of the predefined Multiversx CLI commands from the provided list.
Press Enter
, and the command will be executed in the terminal.
Available Snippets
Here is a list of some of the available snippets (more are available):
mvx-init
: Initialize a new Multiversx project.
mvx-create-component
: Create a new Multiversx component.
mvx-start-server
: Start the Multiversx development server.
mvx-deploy-app
: Deploy a Multiversx app.
- ...
Available CLI Commands
Here is a list of some of the available CLI commands (more are available):
mvx init
: Initialize a new Multiversx project.
mvx create component
: Create a new Multiversx component.
mvx start server
: Start the Multiversx development server.
mvx deploy app
: Deploy a Multiversx app.
- ...
Feedback and Contributions
If you have any issues, suggestions, or want to contribute to this extension, please visit the GitHub repository.
License
This extension is provided under the MIT License. See the LICENSE file for more details.
Happy coding with Multiversx using the Multiversx JS SDK Tools and Snippets extension for Visual Studio Code!