Android Studio is a popular Integrated Development Environment (IDE) used for developing Flutter applications. Here are some essential shortcuts you can use in Android Studio specifically for Flutter development:
Run
Windows/Linux: Ctrl + R
macOS: ⌘ + R
This will run the Flutter app on a connected device or emulator.
Hot Reload
Windows/Linux: Ctrl + \
macOS: ⌘ + \
This will quickly apply code changes to the running app, helping you to see the changes immediately without restarting the whole app.
Hot Restart
Windows/Linux: Ctrl + Shift + \
macOS: ⌘ + Shift + \
This will perform a hot restart, rebuilding the entire Flutter app and resetting its state.
Comment/Uncomment code
Windows/Linux: Ctrl + /
macOS: ⌘ + /
Toggle comments for the selected code.
Find Action
Windows/Linux: Ctrl + Shift + A
macOS: ⌘ + Shift + A
Open the "Find Action" dialog to search for various IDE actions.
Code Formatting
Windows/Linux: Ctrl + Alt + L
macOS: ⌘ + Option + L
This will format the code according to the Flutter style guidelines.
Open Declaration
Windows/Linux: F3
macOS: F3
Jump to the declaration of a variable or function.
Refactor
Windows/Linux: Ctrl + Shift + R
macOS: ⌘ + Shift + R
Perform various code refactoring operations, such as renaming variables, extracting methods, etc.
Show Widget Inspector
Windows/Linux: Ctrl + Shift + I
macOS: ⌘ + Shift + I
This will open the Widget Inspector, allowing you to inspect the widget tree during app debugging.
Show Documentation
Windows/Linux: Ctrl + Q
macOS: F1
Show quick documentation for the selected symbol.
Remember that some shortcuts may vary depending on the keymap configuration in your Android Studio or the Flutter plugin. If you are using VSCode for Flutter development, the shortcuts may be different as well. In such cases, you can check the keymap settings or the plugin documentation for the specific shortcuts.