Run and manage npm scripts directly from VS Code with ease. Start, stop, or restart your development server and execute other scripts without leaving your editor.
Features
Start/stop dev server (npm run dev) from the status bar.
Restart dev server with a single command.
Capture stdout/stderr in a dedicated Output Channel.
Automatically updates the status bar to show server status.
Works with any npm scripts defined in your package.json.
Commands
Command
Description
NPM Runner: Toggle Dev Server
Start or stop your dev server.
NPM Runner: Restart Dev Server
Restart your running dev server.
You can access these commands from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P on Mac) or via the status bar button.
Usage
Open a workspace containing a package.json.
Click the Run Dev status bar button.
View the dev server logs in the NPM Dev Output Channel.
Stop or restart the server from the status bar or command palette.
Extension Settings
This extension currently has no configurable settings.
Requirements
Node.js installed in your system.
Your project must have a valid package.json with scripts defined.
Known Issues
The extension only works in the first workspace folder if you have multiple.
Only supports npm scripts; yarn is not supported yet.