Rename every piece of a Flutter application from a single VS Code command. The extension updates the Dart package name, Android identifiers, iOS bundle identifiers, and the user-facing app names while preserving file formatting.
Features
Flutter: Rename Project (pubspec + Android + iOS + imports) command prompts for a new package name and shows all detected identifiers before making changes.
Detects existing values automatically:
Dart package name (pubspec.yaml).
Android applicationId, android:label, and string resource references.
iOS PRODUCT_BUNDLE_IDENTIFIER, CFBundleIdentifier, CFBundleName, and CFBundleDisplayName.
Applies scoped replacements only where needed:
Updates pubspec.yaml without reformatting the file.
Rewrites Dart package: imports across the workspace.
Moves Android source folders when the Java/Kotlin package changes and cleans empty directories.
Replaces identifiers in Gradle, manifest, and plist files while keeping comments and unrelated values untouched.
Summarizes all changed files in the “Flutter Renamer” output channel and offers to run flutter pub get afterward.
Requirements
Open the Flutter project folder (workspace root must contain pubspec.yaml).
Ensure the project is under source control so you can review the modifications.
VS Code 1.60.0 or newer.
Usage
Open your Flutter project in VS Code.
Run the command palette (Ctrl+Shift+P / Cmd+Shift+P).