A VS Code extension to quickly run Flutter/Dart build_runner.
Features
Native Experience: Works like the built-in NPM Scripts panel, right inside the Explorer sidebar.
Auto Discovery: Automatically finds all packages that depend on build_runner.
Dart Workspace Support: Automatically detects workspace roots and runs with --workspace flag for unified code generation. Requires build_runner >= 2.11.0.
Task Integration: Uses VS Code's Task API so you get native terminal controls (stop, restart) and clear output.
Watch & Build: Run watch or build independently and simultaneously for any package.
Smart Visibility: The tree view only appears when build_runner projects are present.
One-Click Refresh: Rescan the workspace anytime to pick up new or removed packages.
Configuration
Setting
Type
Default
Description
build_runner.fvm
boolean
false
Use FVM to run build_runner
build_runner.args
string
--delete-conflicting-outputs
Additional arguments passed to build_runner
build_runner.excludes
array
[]
Glob patterns to exclude from scanning
Usage
Open a Flutter or Dart project in VS Code.
The BUILD RUNNER panel appears in the Explorer sidebar when eligible packages are found.
Hover over any package and click the build or watch icon.
For Dart workspaces, the root package is labeled with (workspace) and runs with the --workspace flag automatically.
Make sure Flutter / Dart environment variables are configured correctly. See the build_runner documentation for details. You can also create a build.yaml in each package to exclude unnecessary files and speed up compilation.
Requirements
Flutter / Dart SDK installed and available in your PATH.