The Genero Toolkit extension is designed to facilitate running commands from a genero.json
file within Visual Studio Code. It provides a tree view in the Explorer sidebar where you can see a list of commands defined in the genero.json
file and execute them easily.
How to Use
1. Install the Extension
First, make sure you have Visual Studio Code installed. Then, follow these steps:
- Open Visual Studio Code.
- Go to the Extensions view (Ctrl+Shift+X).
- Search for "Genero Toolkit" and click Install.
2. Define Commands in genero.json
In order to use the extension, you need to define commands in the genero.json
file. Here's how:
- Create a
genero.json
file in the .vscode
directory of your project (if it doesn't already exist).
- Add commands to the
genero.json
file following the specified format. Each command should have a unique name, a title, and the command to be executed.
- Save the
genero.json
file.
3. Execute Commands
Once you have defined commands in the genero.json
file, you can execute them using the extension. Here's how:
- Open your project in Visual Studio Code.
- Open the "Genero Commands" view from the Explorer sidebar.
- Expand the tree view to see the list of commands.
- Click on a command to execute it.
Example genero.json File
Here's an example of how a genero.json
file may look:
{
"ls": {
"title": "List Files",
"cmd": "ls",
"description": "Lists files in the project"
},
"build": {
"title": "Build Project",
"cmd": "npm run build",
"description": "Builds the project using npm"
}
}