[Android Studio] Common shortcut keys for Android Studio

Source: Internet
Author: User

(will continue to be updated) this side of the commonly used shortcut keys is to finish keymap to eclipse, not pure Android studio, here are mainly about some of the more commonly used shortcut keys:

CTRL+G/CTRL+ALT+SHIFT+G: The query variable or function or class where is used or called, the latter is the former complex performance, you can choose the scope of the query and so on.

Alt+h: Find function, global find

F4: Viewing class inheritance Relationships

F2: View document description (function usage instructions)

Ctrl+e: View recently opened files

Ctrl+shift+e: View recently edited files

Double Shift: Global lookup, this view and alt+h slightly different, this is the global file lookup, to the file name level.

Ctrl+shift+r: Quickly navigate to the file you want to open.

Ctrl+k: When a variable is selected, quickly navigate to the next place where the variable is used (although this shortcut now has some bugs, 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+o: Quick Find functions in the current class, variables

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+shift+ keypad/: Folding Code (ctrl+shift+ small keyboard * This is not the spirit, today is not free, the latter will be addressed to solve this problem, and update up), of course, the notebook does not have a small keyboard, you can change the shortcut key

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)

Debug class shortcut keys

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:Android Studio Debugging process in the shortcut to see the value of the variable at the breakpoint (ctrl+shift+i invalid)?

Here's a new shortcut for Android Studio to see which function variables are not used in the current class and which are not. Eclipse does not have, very useful, in inspect Code with Editor settings is, you can configure yourself to use the shortcut keys, configuration process, if found that you want to configure the shortcut keys are used, how to understand and what conflicts, how to resolve, please poke this: How does Android stuido view shortcut key conflicts?

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.