2

enter image description here

I already changed the package name of my app, but debugging not working able to run project after flutter run command but not able to debug.

Zeeshan Ansari
  • 1,413
  • 12
  • 21

1 Answers1

2

This is how I did in vscode:

In Search, turn on Regular Expression and use following command. (you should change example_flutter to your existed package name)

(import 'package:)example_flutter

In Replace, use following command: (you should change new_project_name to your favorite)

$1new_project_name

enter image description here

Tested in flutter-desktop, For Android and iOS, I thought you have found this post already.

Edit:

The OP's issue is sloved by deleted .vscode and restart vscode, I thought the issue was changing the name in pubspec.yaml, so made a wrong solution above.

Tokenyet
  • 4,063
  • 2
  • 27
  • 43
  • I already changed the package name of my app, but debugging not working able to run project after flutter run command but not able to debug. – Zeeshan Ansari Sep 04 '19 at 06:31
  • 1
    Sorry, I misunderstood your question. Have you tried to delete `.vscode` file and fully restart vscode? I always did this If not working. – Tokenyet Sep 04 '19 at 06:42