Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Flutter Project RenamerNew to Visual Studio Code? Get it now.
Flutter Project Renamer

Flutter Project Renamer

Taha Darwish

|
1 install
| (0) | Free
Rename Flutter project name, Dart package imports, Android package id and iOS bundle id.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Flutter Project Renamer

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

  1. Open your Flutter project in VS Code.
  2. Run the command palette (Ctrl+Shift+P / Cmd+Shift+P).
  3. Choose Flutter: Rename Project (pubspec + Android + iOS + imports).
  4. Review the detected identifiers, adjust any values you want to change, and confirm.
  5. Inspect the reported file changes and run flutter pub get / flutter clean as needed.

Known Limitations

  • Projects with heavily customized Gradle or Xcode build scripts may require manual follow-up.
  • Localized Android string resources are updated, but verify non-default resource folders if custom logic is in place.

Need help or found an edge case? Please open an issue in the repository.

Made with ❤️ by Taha Darwish

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