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