Shortcut keys for Androidstudio

Source: Internet
Author: User

Tips

Ctrl+p Method Parameter Hints
CTRL + Space Code hints
Ctrl+shift+space can give smart hints in many cases
Ctrl+alt+space class name or interface name hint

View

Alt+1 quickly open or hide the engineering panel
Ctrl+h view class structure diagram
CTRL+F12 view the structure of the current file
Ctrl+q Viewing a comment document
Ctrl+p Viewing parameter information
ALT+Q View the declaration of the current method
Ctrl+q View Javadoc
Ctrl+w Select the word and then the statement goes to the function.

Find

Alt + F1 Find where the code is located
Ctrl + F7 finds references to the current element in the current file, and then presses F3 to select
Alt + F3 Quick Find
Ctrl + Shift + F7 to highlight the current element's use in the current file
Ctrl + shift+n Find files
Ctrl + Shift+alt+n Find a method or variable in a class
Ctrl + B finds the class or method at the opening cursor
Ctrl + N Quick Find class
Ctrl + F Find text
ALT+F1 you can position the element you are editing in each panel
Ctrl+shift+alt+n can quickly open a symbol quickly when opening classes/files/symbols, you can use wildcards, or you can use abbreviations
Ctrl+alt+up/ctrl+alt+down can quickly jump to search results

Repair

Shift+f6 Refactoring-Renaming
Ctrl+x Deleting rows
Ctrl+d Copying rows
ctrl+/or ctrl+shift+/Comments (//or/*...*/)
Alt+insert can generate constructors/getter/setter, etc.
Ctrl+alt+l Formatting Code
Ctrl+r replacing text
Alt+enter Import package, auto fix
Ctrl+alt+o Optimizing imported classes and Packages
CTRL+J Automatic Code
Ctrl+shift+space Auto-Complete code
Ctrl+alt+space class name Auto-complete
Ctrl+shift+insert can select Clipboard contents and insert
Ctrl+shift+j can integrate two lines
Ctrl+alt+t can wrap code inside a piece, such as Try/catch
Ctrl+alt+v can introduce variables. For example, to assign a variable to a SQL in parentheses
ALT+F8 Calculating variable values
Ctrl+o can choose a method of the parent class to override

Recent related

Ctrl+e files that were recently opened----------
Ctrl+shift+backspace can jump to the last edited place
ctrl+alt+ Left/right back to the last viewed location
Ctrl+e or Alt+shift+c recently changed code
Alt+shift+c vs. recently modified code

Move

The Ctrl+shift+up/down code moves up/down. ---------------
F2 or SHIFT+F2 highlighting error or warning quick location------------
Ctrl+up/down cursor jumps to the first or last line
ctrl+[or] can jump to the beginning of the curly brace
Ctrl+shift+up/down Move Method

Ctrl+p Method Parameter Hints
CTRL + Space Code hints
Ctrl+shift+space can give smart hints in many cases
Ctrl+alt+space class name or interface name hint

Shortcut keys for Androidstudio

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.