Run dart run build_runner build --delete-conflicting-outputs with one click.
Usage
Method
Action
▶️ Button
Click the play button in the editor title bar (Dart files)
⌨️ Shortcut
Cmd+Shift+R (Mac) / Alt+Shift+R (Windows/Linux)
📁 Right-click
Right-click any folder → "Run Build Runner"
Automatically finds the root pubspec.yaml of the folder or file and runs build_runner from there.
Installation
# Build from source
npm install
npm run compile
vsce package
Install via Cmd+Shift+P → Extensions: Install from VSIX... or search for Build Runner Context Menu in the Extensions Marketplace.
Then reload VS Code / Cursor.
Credits
Made with 💙 by @Jon Ihlas for the Flutter community.