Keyboard shortcut for 'new blank activity' in Android Studio

纵饮孤独 提交于 2019-12-06 16:25:45

问题


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.



来源:https://stackoverflow.com/questions/30526496/keyboard-shortcut-for-new-blank-activity-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!