How to change VS CODE's default emulator?
1,923
There isn't really a "default" here, VS Code asks Flutter to monitor devices being connected/disconnected and usually selects the "last device connected" as they appear. If you have multiple devices available, the one selected will depend on the order they are discovered at startup.
If you're not using Flutter web for this project, I think there are two things that could help:
- run
flutter config --no-enable-web
to prevent Chrome being an available device at all (this is global) - removing the
web
folder from your project (this would prevent Chrome being a valid device for this specific project)
Author by
user3486308
Updated on December 27, 2022Comments
-
user3486308 over 1 year
I have installed
flutter
andAndroid iOS Emulator
plugins on VS CODE, and this is the result offlutter emulators
command inside the VS CODE's built-in terminal:3 available emulators: Nexus_5x • Nexus_5x • Google • android Pixel_2_API_29 • Pixel 2 API 29 • Google • android pixel_xl • pixel_xl • Google • android To run an emulator, run 'flutter emulators --launch <emulator id>'. To create a new emulator, run 'flutter emulators --create [--name xyz]'. You can find more information on managing emulators at the links below: https://developer.android.com/studio/run/managing-avds https://developer.android.com/studio/command-line/avdmanager
But the default emulator it selects in the right-bottom corner of the IDE is
Chrome(web javascript)
. I wan to change the default choice to one of the Android emulators if is it possible?-
Viraj D over 3 yearsclick on that right bottom corner and a drop down list should appear where you can select all the emulator or simulators you have installed. You could have just looked it up on chrome instead of asking it here.
-
user3486308 over 3 years@VirajD: I knew what you said, but wanted to change the default from Chrome to one of the Android emulators permanently!
-