Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Better ScriptsNew to Visual Studio Code? Get it now.
Better Scripts

Better Scripts

MeinhartThomas

|
1 install
| (0) | Free
A beautiful replacement for the built-in npm scripts sidebar — supports npm, pnpm, bun, and yarn with auto-detection, rich icons, and one-click run/debug.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Better Scripts

A VS Code extension that replaces the built-in npm scripts sidebar with a richer, more capable alternative.

Features

  • Auto-detects your package manager -- supports npm, pnpm, bun, and yarn out of the box. Detection is based on lockfiles (bun.lockb, pnpm-lock.yaml, yarn.lock, package-lock.json) and the packageManager field in package.json.
  • One-click run -- click any script to immediately run it in an integrated terminal.
  • Debug mode -- hover over a script to reveal a debug button that launches the script with Node.js debugging attached.
  • Go to definition -- hover to reveal a button that jumps directly to the script in its package.json.
  • Contextual icons -- each script gets an icon based on what it does: test, build, lint, format, Docker, Prisma, Playwright, i18n, deploy, TypeScript, Storybook, and more. Falls back to your package manager's icon.
  • Multi-root support -- automatically discovers and groups scripts from every package.json in your workspace (excluding node_modules).
  • Live updates -- the tree refreshes automatically when any package.json changes.

Package Manager Detection

The extension checks for lockfiles in this order:

  1. bun.lockb / bun.lock → bun
  2. pnpm-lock.yaml → pnpm
  3. yarn.lock → yarn
  4. package-lock.json → npm
  5. packageManager field in root package.json → corresponding manager
  6. Fallback → npm

Contributing

Everyone is welcome to open a PR to add more icons or improve existing ones!

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft