Command Runner is a Visual Studio Code extension that lets you save and quickly execute frequently used CLI commands with a single click. Organize commands into groups, execute them directly from VSCode, and streamline your workflow.
Features
Save Commands: Quickly save commands and organize them under different groups.
Execute Commands: Run any saved command with a single click from the sidebar.
Add and Remove Commands: Easily add new commands or remove unwanted ones.
Group Management: Organize commands into groups and remove groups when needed.
Customizable Sidebar View: Access and manage commands directly from the sidebar.
Installation
From VSIX
Download the latest .vsix package from the releases page.
Open Visual Studio Code.
Go to the Extensions sidebar (Ctrl+Shift+X or Cmd+Shift+X on Mac).
Click the three-dot menu (...) in the top-right corner and select Install from VSIX….
Choose the downloaded .vsix file and install the extension.
From Visual Studio Code Marketplace
Open Visual Studio Code.
Go to the Extensions sidebar (Ctrl+Shift+X or Cmd+Shift+X on Mac).
Search for "Command Runner" by "your-publisher-name".
Click Install.
Usage
Add a Command:
Click the Add Command button in the sidebar or right-click on an existing group and select Add Command.
Enter the group name, command nickname, and the CLI command to save.
Run a Command:
Click on any saved command to execute it in the integrated terminal.
Remove a Command:
Right-click on a command and select Remove Command. Confirm the deletion in the prompt.
Remove a Group:
Right-click on a group and select Remove Group to delete the group and all commands within it.
Configuration
By default, all saved commands are stored in .vscode/commands.json in the project workspace. You can edit this file directly or use the extension interface to manage commands.
Press F5 to open a new VSCode window with the extension loaded.
Package the extension:
vsce package
Contributing
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request. For major changes, open an issue to discuss the proposed changes first.