Android Studio shortcut key (WIN/MAC) Introduction

Source: Internet
Author: User

Mac and win shortcut key differences:

Frequently used shortcuts are those that are not pure Android studio after keymap to eclipse.

  Android Studio shortcut key Introduction:

Ctrl+g/ctrl+alt+shift+g: Query variables or functions or classes where it is used or called, the latter is the complex performance of the former, you can select the scope of the query.

Alt+h: Lookup function, global lookup

F4: View 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: After selecting a variable, quickly navigate to the next place where the variable is used (although there are still bugs in the shortcut, see: Android Studio keymap to eclipse, find the next same variable shortcut key ctrl+k invalid)

Alt+↑: Where the cursor is, the line of code moves up.

Alt+↓: Where the cursor is, the line of code moves down

Ctrl+d: Deletes the line of code where the cursor is located

Ctrl+x: Cut the line of code where the cursor is located

Alt+shift+↓/ctrl+c: Copy the line code from the cursor to the next line

Ctrl+o: Quick Find functions in the current class, variables

Ctrl+shift+r: Modifying names

Alt+enter: Importing Packages

alt+←: Go back and navigate to the last view or edit place

alt+→: Forward positioning, such as you locate to the last point, you want to go back, you can use this shortcut key

ctrl+/: When the line annotation, the reverse annotation again can

ctrl+shift+/: module annotation, reverse comment again, note that this side of the "/" can not use the keypad

ctrl+shift+ keypad/: Folding code (ctrl+shift+ keypad * This is not the spirit, today is not available, the following will be addressed to this problem, and update up), of course, the notebook does not have a keypad, you can change your own shortcut keys

Ctrl+alt+s: Open the Settings screen

Ctrl+alt+shift+s: Open the Project Structure interface

Alt+shift+x: Running (run)

Alt+shift+d: Debug Run (Debug)

CTRL+F9: Compiling Engineering

Ctrl+shift+k:push files to server (git)

Debug class shortcut keys

F5: But does not debug into the function inside.

F6: But not debugging does not go inside the function.

F7: Returned to the call from within the function.

F8: Executes to the next breakpoint and completes without a breakpoint.

ctrl+alt+f8/Double-click the mouse: directly to see the value of the selected location, the two shortcuts slightly different, the specific difference see this: the shortcut to view the value of a breakpoint at the point of the Android Studio debugging (ctrl+shift+i not valid)

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.