Keyboard shortcut for 'new blank activity'

2020-08-02 19:54发布

问题:

Is there a keyboard shortcut to add a new blank activity in Android Studio?

I know you can click File -> New -> Activity as explained here but this gets annoying and tedious when I'm adding multiple activities.

EDIT: Clicking on the package name followed by Alt+Insert shortcuts to File -> New, however, you still need to manually navigate to Activity -> Blank Activity

回答1:

You can assign a shortcut to any action you want. Go to

File > Settings > Keymap

and search for Blank Activity. Now right click the item and select Add Keyboard Shortcut.