Android Studio shortcut keys

Source: Internet
Author: User

  • Double Shift: Global lookup, this view and alt+h slightly different, this is the global file lookup, to the file name level.
    Ctrl+b quick way to see where the method is called and defined
    The Ctrl+shift+enter is automatically adapted, including a cursor SHIFT + auto-complete semicolon. (It's awesome!) )
    Ctrl (Command) +alt (Option) +m Extract Code composition method
    Ctrl (Command) +alt (Option) +f change a local variable to a member variable of a class
    Ctrl+alt+l code formatting,
    Alt+f7 see where this class or method is referenced
    Alt+7 View all the methods in a class
    Ctrl+o: Quick Find functions in the current class, variables
    Ctrl+shift+r: Quickly navigate to the file you want to open
    Ctrl+e: View recently opened files
    Ctrl+shift+e: View recently edited files
    Ctrl+k: When a variable is selected, quickly navigates to the next place where the variable is used (although there are still some bugs in this shortcut, see: After Android Studio keymap to eclipse, find the next same variable shortcut key ctrl+k invalid)
    Alt+↑: The line of code where the cursor is located moves upwards
    Alt+↓: The line of code where the cursor is located moves down
    Ctrl+d: Delete the line of code where the cursor is located
    Ctrl+x: The line of code where the cursor is clipped
    ALT+SHIFT+↓/CTRL+C: Copy cursor line code to next line
    Ctrl+shift+r: Modify Name
    Alt+enter: Importing Packages
    alt+←: Back, go to the last view or edit location
    alt+→: Move forward, for example, after you locate the last point, want to go back, you can use this shortcut key
    ctrl+/: When line comment, counter-comment press once again
    ctrl+shift+/: module comments, counter-comment and then press once, note that this "/" can not use the keypad
    Ctrl+alt+s: Open Settings interface
    Ctrl+alt+shift+s: Open the Project Structure interface
    Alt+shift+x: Running (run)
    Alt+shift+d: Debug Run (Debug)
    CTRL+F9: Compiling the project
    Ctrl+shift+k:push file to server (git)
    F5: But does not debug into the inside of the function.
    F7: The call is returned from within the function.
    F8: Executes to the next breakpoint, and execution completes without a breakpoint.
    ctrl+alt+f8/double-click the mouse: directly see the value of the selected location, these two shortcuts slightly different, the specific difference please see this:

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android Studio shortcut keys

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.