I have been working on small Android apps, and I just want to share some of my favorite keyboard shortcuts. Some of them were manually added by me.
Keyboard shortcuts are one of my must-haves for productivity as a programmer, as they let me navigate through code faster, allowing me to focus on creating new modules and solving problems.
Note: I am using Windows.
Move between Code, Split, and Design when working on an XML layout file
Alt + Shift + Left/Right Directional Button
(If it doesn’t work, click on the layout file’s code/design first, then retry.)
Run app in test device or emulator
Shift + F10
Run app in test device or emulator with Debugger
Shift + F9
Navigate between open tabs (no split):
Navigate between points/screens that you’re viewing:
Ctrl + Alt + Left/Right
Show Parameter Info while filling in a function call
Ctrl + P
Maximize/minimize editor
Ctrl +
Shift + F12
Created a custom shortcut for Close All Tabs:
Ctrl + Alt + Shift + F4
Created a custom shortcut for Rebuild Project:
Ctrl + Alt + Shift + F10
Created a custom shortcut to toggle Distraction-Free Mode on/off:
Ctrl + Alt + Shift + D
Created a custom shortcut to toggle ZenMode on/off:
Ctrl + Alt + Shift + Z
Other keyboard shortcuts: https://developer.android.com/studio/intro/keyboard-shortcuts