Some common shortcut keys for Android Studio

Source: Internet
Author: User

Cursor Movement and Window switching:
1. ESC: The cursor returns to the edit window from the function window
2. Alt+num: Open the specified function window and repeat to close the window.
3, alt+←→: Switch the edited file.
4, Ctrl+home/end: Jump to the beginning and end of the file
5. Ctrl +↑↓: Move the cursor to the next function
6. ctrl+[]: Cursor moves to both ends of the range of parentheses to which the cursor belongs.


Automatic Features:
1, CTRL + ALT + SPACE: auto-completion, I often used in the new object when the automatic completion. (Ctrl + space can also be auto-complete, because it conflicts with input method shortcuts, not necessary)
2, CTRL + ALT+L: Automatic formatting code.
3, CTRL + ALT+O: Automatically organize import.
4, Ctrl+o: Duplicate parent function override
5, Alt+insert: Automatic generation of construction methods to getter and setter


Other:
1. Ctrl +p: View the parameter definition of the function where the cursor is located.
2. ctrl+/: Comment or counter-comment selected segments.
3. Alt+f7: In the Find function window, list all the locations where the variable or function is used in the project.
SHIFT + f6:rename (renaming)
This feature is a powerful feature of idea, and here we give an example to illustrate. The other code that uses the field/function section is modified, and if there is a canonical getter and setter function, you are asked whether to synchronize the modifications.

Some common shortcut keys for Android Studio

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.