1. CTRL + D: The copy and paste operations are set. If a selected part is selected, the selected part is copied and followed by the selected part.
Paste it out. If no part is selected, copy the row where the cursor is located and paste it below this row.
2. CTRL + space: EnterCodeWhen you press this key combination, the matching classes, method names, member variables, and so on will be listed for smart prompting.
It is equally useful when editing XML files.
3. CTRL + down arrow or Ctrl + Up Arrow: when there is an automatic match drop-down list, this shortcut will automatically turn off the drop-down list,
Move the cursor to the bottom/top line.
4. Automatic match: in the lower-right corner of the automatic match drop-down list, select
It is arranged by practicality and letters.
5. CTRL + slash, CTRL + Shift + slash:
CTRL + slash: Comment out or uncomment the current line or selected code block. The double slash is used as the "//"
CTRL + Shift + slash: Comment out or uncomment the selected code block. */"Method comment,
6. CTRL + Shift + enter: automatically matches the corresponding syntax structure, such as if, do-while, and try-catch.
7. CTRL + F: Search
8. CTRL + period: in the auto-match drop-down list, select the first item
9. Exclamation point: in the auto-match drop-down list, select an item with the return result Boolean by the up and down keys. The exclamation point will be automatically reversed:
Effect after exclamation point:
10. CTRL + enter: in the auto-match drop-down list, if no item is selected, the first item is selected by default.
11. CTRL + Shift + A: Quickly search for menus in Android studio.
12. CTRL + N: quick search for class names and files
13. CTRL + B: Jump directly to the class, method, and member variable definition. The same effect as Ctrl + left mouse button
14. CTRL + ALT + B: queries which classes implement the interface where the cursor is located.
15. CTRL + ALT + Shift + I: Check Code, such as detecting variables or methods that are defined but not used. The purpose of detection is to improve code efficiency.
16. CTRL + ALT + Shift + N: Quickly open the input method or variable.
17. CTRL + Shift + F7: Mark some related items in the highlighted form. There are three main cases: 1. When the cursor is positioned in implement,
Indicates the method name of the class that implements the interface; 2. When the cursor is at return, it indicates all exit points of the method;
3. When the cursor is at the keyword "try" or "throws", an exception occurs.
18. Shift + mouse scroll: you can scroll horizontally on the editing page.
19. CTRL + ALT + V: when calling a method, the input parameter is a complex expression, which can be used to reconstruct the variable to simplify the complexity of the Code.
Select the expression before the key combination.
20. CTRL + D: compare two jar files. In the same project, select two jar files and press the combination key.
21. CTRL + O: When the subclass wants to override the method of the parent class, press this combination key to display the methods of all parent classes. CTRL + I.
22. CTRL + Shift + I: to quickly view the method body and view how a method is implemented, move the cursor to the method and press the combination key.
23. CTRL + Q: move the cursor to the method. Press this key combination to quickly view the instructions of the method.
24. CTRL + ~ : Switch the style and shortcut key design of the editing interface.
25. Alt + Shift + C: view the latest changes to the project.
26. CTRL + E: Quick View of recently opened files.
27. Shift + F6: You can rename classes, methods, and variables. The names are automatically updated when used.
28. Alt + F1: Quickly open the project view, structure view, and other elements to view the corresponding elements.
29. CTRL + ALT + F7: view the usage of a class, method, and member variable throughout the project.
30. CTRL + Shift + space: Lists method names and member variable names that match the type when values are assigned or when parameters are required in the method.
31. CTRL + ALT + T: select a piece of code and press this combination key to quickly add statements such as if, for, and try/catch.
32. CTRL + tab: Open the interface switch window, hold down the ctrl key, and select the window to open.
33. CTRL + W: select the word (a member variable or a method name) where the cursor is located. Press the statement once to select the cursor,
Press it again to select the code block... And so on. Each addition will expand the range of primary selection.