One-click buttons in the status bar to launch dev commands like npm run dev, npm start, or any custom shell command.
- Add buttons via VS Code settings or config file
- Customize display text or icon, tooltip, command to run
- Control alignment (left/right), color, priority/order
- Terminal behavior: reuse or open new terminal; working directory support
- Configuration reflects immediately (no VS Code restart required)
- Optional: automatically load npm scripts from package.json
- VS Code 1.103.0 or higher
This extension contributes the following settings:
-
runAllApps.buttons: Array of button configurations. Each button object has:id: Unique identifiertext: Display text (can include icons like$(play))tooltip: Hover tooltipcommand: Shell command to executealignment: "left" or "right" (default: "right")priority: Number for ordering (default: 0)color: Text colorbackgroundColor: Background color (theme color name)reuseTerminal: Boolean to reuse terminal (default: true)workingDirectory: Relative path for command execution
-
runAllApps.loadNpmScripts: Boolean to auto-load npm scripts from package.json (default: false)
- Install the extension
- In the new window, open settings (Ctrl+,) and search for "Run All Apps"
- Search for "Run All Apps"
- Configure the
runAllApps.buttonsarray with your desired commands - Optionally enable
runAllApps.loadNpmScriptsto auto-add npm scripts - Buttons will appear in the status bar
- Click a button to run the command in a terminal
{
"devCommandButtons.buttons": [
{
"id": "dev",
"text": "$(play) Dev",
"tooltip": "Start development server",
"command": "npm run dev",
"alignment": "right",
"priority": 10,
"reuseTerminal": true
},
{
"id": "build",
"text": "$(tools) Build",
"tooltip": "Build the project",
"command": "npm run build",
"alignment": "right",
"priority": 5
}
],
"devCommandButtons.loadNpmScripts": true
}- Configuration changes require window reload to apply (VS Code limitation for status bar items)
Initial release with basic status bar button functionality.
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
- Split the editor (
Cmd+\on macOS orCtrl+\on Windows and Linux). - Toggle preview (
Shift+Cmd+Von macOS orShift+Ctrl+Von Windows and Linux). - Press
Ctrl+Space(Windows, Linux, macOS) to see a list of Markdown snippets.
Enjoy!