Run Dart build_runner scoped to a single file — no more waiting for full-project builds.
- Single-file builds — Run
build_runner buildfiltered to just the file you're working on - Single-file watch — Watch mode scoped to a single file for fast iterative development
- Full-project build — Run
build_runner buildacross the entire project when needed - Part file navigation — Quickly jump to generated
.g.dart,.freezed.dart, and other part files - Delete generated files — Remove stale generated part files for the current file
- FVM support — Automatically uses
fvm dartwhen enabled (disabled by default — enable via settings) - Monorepo support — Finds the nearest
pubspec.yamlfor each file, works in nested packages - Status bar indicator — See when
build_runner watchis active and click to stop it - Keyboard shortcuts — Default keybindings for fast access
| Command | Title | Shortcut |
|---|---|---|
scopedBuildRunner.run |
Run build_runner | Cmd+Alt+B (Mac) / Ctrl+Alt+B |
scopedBuildRunner.watch |
Watch build_runner | Cmd+Alt+W (Mac) / Ctrl+Alt+W |
scopedBuildRunner.runAll |
Run build_runner (full project) | — |
scopedBuildRunner.goToPartFile |
Go to generated part file | — |
scopedBuildRunner.deleteGenerated |
Delete generated files | — |
| Setting | Type | Default | Description |
|---|---|---|---|
scopedBuildRunner.useFvm |
boolean |
false |
Use fvm to run dart commands |
scopedBuildRunner.deleteConflictingOutputs |
boolean |
true |
Pass --delete-conflicting-outputs to build_runner |
scopedBuildRunner.showGoToPartFile |
boolean |
false |
Show "Go to generated part file" in the explorer context menu |
scopedBuildRunner.showDeleteGenerated |
boolean |
false |
Show "Delete generated files" in the explorer context menu |
Right-click any .dart file in the Explorer to access:
- Run build_runner — one-time build filtered to this file
- Watch build_runner — continuous watch filtered to this file
- Go to generated part file — open related generated files (opt-in via settings)
- Delete generated files — remove generated part files (opt-in via settings)
Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and search for "build_runner" to see all available commands.
Cmd+Alt+B/Ctrl+Alt+B— Run build_runner for the active fileCmd+Alt+W/Ctrl+Alt+W— Watch build_runner for the active file
When build_runner watch is active, a status bar item appears showing $(eye) build_runner. Click it to stop the watch.
- A Dart or Flutter project with
build_runnerindev_dependencies - FVM (optional, disabled by default — enable via settings)
MIT