The shortcut key of AndroidStudio.

Source: Internet
Author: User

The shortcut key of AndroidStudio.

Prompt

Ctrl + P method parameter prompt
Ctrl + space code prompt
Ctrl + Shift + Space provides Smart prompts in many cases
Ctrl + Alt + Space class name or interface name prompt

View

Alt + 1 quickly open or hide the project panel
Ctrl + H view the class structure
Ctrl + F12 view the structure of the current file
Ctrl + Q view comments
Ctrl + P view parameter information
Alt + Q view the declaration of the current method
Ctrl + Q view JavaDoc
Ctrl + W select the word and then the statement and then the Function

Search

Alt + F1 locate code
Ctrl + F7 find the reference of the current element in the current file, and then press F3 to select
Alt + F3 quick search
Ctrl + Shift + F7 can highlight the use of the current element in the current file
Ctrl + Shift + N search for files
Ctrl + Shift + Alt + N find methods or variables in the class
Ctrl + B find the class or method to open the cursor
Ctrl + N Quick Search Class
Ctrl + F search for text
Alt + F1 can locate the elements being edited in each panel
Ctrl + Shift + Alt + N you can use wildcards or abbreviations to quickly open a class/file/symbol.
Ctrl + Alt + Up/Ctrl + Alt + Down to quickly jump to the search results

Repair

Shift + F6 reconstruction-Rename
Ctrl + X Delete rows
Ctrl + D copy rows
Ctrl +/or Ctrl + Shift +/comment (// or /*...*/)
Alt + Insert can generate Constructors/Getter/Setter, etc.
Ctrl + Alt + L format the code
Ctrl + R replace text
Alt + Enter import package, automatically corrected
Ctrl + Alt + O optimized imported classes and packages
Ctrl + J Automatic Code
Ctrl + Shift + Space auto-completion code
Ctrl + Alt + Space class name automatically completed
Ctrl + Shift + Insert: select the clipboard content and Insert it
Ctrl + Shift + J can be integrated into two rows
Ctrl + Alt + T can enclose the code in a block, for example, try/catch
Ctrl + Alt + V can introduce variables. For example, assign the SQL statement in parentheses to a variable.
Alt + F8 calculate the variable value
Ctrl + O you can override the method of the parent class

Recent problems

Ctrl + E recently opened file ----------
Ctrl + Shift + Backspace can jump to the Last edited place
Ctrl + Alt + left/right return the previous browsing position
Ctrl + E or Alt + Shift + C recently changed code
Alt + Shift + C compare the recently modified code

Mobile

Ctrl + Shift + Up/Down code move Up/Down. ---------------
F2 or Shift + F2 highlight error or warning quick locating ------------
Ctrl + Up/Down Jump cursor to the first line or the last line
Ctrl + [or] can jump to the beginning and end of braces
Ctrl + Shift + up/down move Method

Ctrl + P method parameter prompt
Ctrl + space code prompt
Ctrl + Shift + Space provides Smart prompts in many cases
Ctrl + Alt + Space class name or interface name prompt

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.