Script Runner
A VS Code extension to quickly run scripts from package.json files with a convenient WebView panel.
Features
- WebView UI - Display scripts in a side panel with run/stop/restart buttons
- Multi-repo Support - Dropdown to select workspace folder or show all
- Collapsible Sections - Each repo can be collapsed/expanded
- Process Management - Track running scripts, handle stop/restart
Installation
- Open the extension in VS Code
- Press
F5 to run the extension in debug mode
- Or build and install the
.vsix file
Development
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch
# Debug (F5)
Usage
- Open a workspace with
package.json files
- Click the "Script Runner" icon in the activity bar
- Click the Run (▶) button to start a script
- Click the Stop (⏹) button to stop a running script
- Click the Restart (🔄) button to restart a running script
- Use the dropdown to filter by folder
Keyboard Shortcuts
Ctrl+Shift+R (Mac: Cmd+Shift+R) - Refresh scripts
Requirements
- VS Code 1.85.0 or later
- Works with Cursor, WindSurf, and other VS Code compatible IDEs
| |