Android Studio Keyboard shortcut control

后端 未结 8 1871
渐次进展
渐次进展 2020-12-02 21:56

Can anyone give me some suggestion or link of all controls of Android Studio keyboard shortcuts?

相关标签:
8条回答
  • 2020-12-02 22:19

    Move to File -> Settings -> Keymap and change Keymaps settings to eclipse so that you can use the short cut keys like in eclipse.

    enter image description here

    0 讨论(0)
  • 2020-12-02 22:21

    Go to Help and select Default Keymap Reference will point you to one of these default keyboard shortcuts for Android Studio. It has all the keyboard shortcuts you can do in Android Studio. It's says for it's IntelliJIDEA but Android Studio is based off IntelliJIDEA, so all the keyboard shortcuts listed there apply in Android Studio.

    Windows and Linux

    Mac

    0 讨论(0)
  • 2020-12-02 22:28

    I may be late to answer this, but would like to help all others who come up to this page from now.

    Here is the list of all the most productive shortcuts that I have been using regularly in my day to day Android development. It saves a lot of time, seriously.

    • Find only classes - CMD + o
    • Find files - CMD + Shift+ o
    • Find everything - Double Shift
    • Find symbol - CMD + Alt+ o
    • Find in page - CMD + f
    • Find usages - fn + Alt+ f7
    • Generate boilerplate code - CMD + j
    • Quick fix - Alt + Enter
    • Code completion - Ctrl + Space
    • Definition of a class or method - Alt + Space
    • Navigate to a class or method - CMD + Left Click
    • Refactor rename - fn + Shift+ f6
    • Run app - Ctrl + R
    • Format code - Alt + CMD+ L
    • Show documentation - fn + f1
    • Mode code up/down - Shift + CMD+ up/down
    • Generate Code - CMD + N
    • Recently opened files - CMD + e
    • Recently edited files - CMD + Shift+ e
    • Delete lines at one go - CMD + Delete
    • Add single line comment - CMD + /
    • Add block comment - CMD + Alt+ /
    0 讨论(0)
  • 2020-12-02 22:28

    On the Mac OS go to Android Studio -> Preferences -> Keymap

    0 讨论(0)
  • 2020-12-02 22:33

    if you have a favourite plugin that doesn't have a shortcut, just navigate to

    Settings > KeyMap > Double click Plugins > Select desired plugin > Add 
    Keyboard Shortcut :: Then press down the hot keys you want to assign for the 
    plugin and click OK.
    

    PS. be careful not to override any important AS shortcut.

    0 讨论(0)
  • 2020-12-02 22:34

    Here is the official list of the shortcuts of Android Studio for Windows, Linux and Mac:

    https://developer.android.com/studio/intro/keyboard-shortcuts.html#configure_custom_keymaps

    0 讨论(0)
提交回复
热议问题