Android Studio shortcut keys

Source: Internet
Author: User

The first thing I usually use:

Ctrl+alt+space (SPACEBAR) * Code hints for divine skill, although Android Studio has integrated but still manually cool some

Alt+↑: The line of code where the cursor is located moves upwards

Alt+↓: The line of code where the cursor is located moves down

ALT+SHIFT+↓/CTRL+C: Copy cursor line code to next line

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

Ctrl+x: The line of code where the cursor is clipped

  

Other commonly used:

Class F:

F2: View document description (function usage instructions)

F4: Viewing class inheritance Relationships

Ctrl class:

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.

Ctrl+k: When a variable is selected, quickly navigate to the next place where the variable is used

Ctrl+e, you can display a list of recently edited files

ctrl+[or] can jump to the beginning of the curly brace

CTRL + N, you can quickly open class

Ctrl+o can choose a method of the parent class to override

Ctrl+w can select words followed by statements followed by functions.

Ctrl+p, can display parameter information

CTRL+F12, the structure of the current file can be displayed

Ctrl+f7 can query the current element's reference in the current file, and then press F3 to select

ctrl+/and ctrl+shift+/can annotate code

Ctrl+alt+v can introduce variables. For example, to assign a variable to a SQL in parentheses

Ctrl+alt+t can wrap code inside a piece, such as Try/catch

Ctrl+alt+space is the class name auto-complete

Ctrl+shift+f7 can highlight the current element's use in the current file

Ctrl+alt+up/ctrl+alt+down can quickly jump to search results

Ctrl+alt+b can jump to the implementation of an abstract method

Ctrl+shift+insert can select Clipboard contents and insert

Ctrl+shift+alt+n to quickly open symbols

Ctrl+shift+n, you can quickly open files

Ctrl+shift+j can integrate two lines

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

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

Ctrl+shift+backspace can jump to the last edited place

Alt class:

Alt+shift+x: Running (run)

Alt+shift+d: Debug Run (Debug)

Alt+enter: Importing Packages

Alt+h: Find function, global find

Alt+q can see the declaration of the current method

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

ALT+F1 you can position the element you are editing in each panel

Alt+insert can generate constructors/getter/setter, etc.

Alt+up and Alt+down can be moved quickly between methods

ALT+F3 can quickly find

Alt+f8 is the value of the calculated variable

  

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.

O.O is so much for the time being.

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.