Is there a way to set default package in VS Code? (com.example.myproject) I can only do this in Android studio. So I used it to create a project and then I open it in VS Code.
I mean when creating via: (Ctrl+Shift+P ➡ New flutter project)
Is there a way to set default package in VS Code? (com.example.myproject) I can only do this in Android studio. So I used it to create a project and then I open it in VS Code.
I mean when creating via: (Ctrl+Shift+P ➡ New flutter project)
To change the default organization from com.example
to your own, perform the following steps:
Add the following line to the JSON list:
"dart.flutterCreateOrganization": "com.mydomain",
Save the file and create a new project
Your package name should be correct now and you can confirm it like this.
You can set the dart.flutterCreateOrganization
setting to control the Organization used when building the identifier (it has the project name added to the end):
https://dartcode.org/docs/settings/#dartfluttercreateorganization