- Open the Command Palette by pressing
Ctrl+Shift+P
(orCmd+Shift+P
on macOS). - Type
Flutter: Select Device
and select the connected device or emulator. - Press
F5
or go toRun > Start Debugging
to run the app. You can also useCtrl+F5
(orCmd+F5
on macOS) to run without debugging.
-
Ensure the target device is selected in the device dropdown in the toolbar.
-
Click the
Run
button (green play icon) in the toolbar, or pressShift+F10
to run the app. -
Open a terminal window.
-
Navigate to your Flutter project directory:
cd path/to/your/flutter_project
flutter run
flutter devices
Hot Reload allows you to see changes in your app instantly without restarting it. After making changes to your code, save the file, and the app will reload automatically.
- In VS Code, press r in the terminal where flutter run is running.
- In Android Studio, click the Hot Reload button (lightning bolt icon) in the toolbar.
- In the terminal, press r while flutter run is active.
- In VS Code, press Shift+R in the terminal where flutter run is running.
- In Android Studio, click the Hot Restart button (circular arrow icon) in the toolbar.
- In the terminal, press R while flutter run is active.