Now the use of the Android Studio shortcut is organized as follows:
| Shortcut keys |
Role |
| ALT + ENTER |
Import package, auto fix |
| CTRL + N |
Find class |
| Ctrl+shift+n |
Find Files |
| Ctrl+alt+l |
Formatting code |
| Alt+insert |
Generate code (such as Get,set method, constructor, etc.) |
| Ctrl+e or Alt+shift+c |
Recently changed code |
| Ctrl+shift+alt+n |
Find a method or variable in a class |
| Ctrl+x |
Delete Row |
| ctrl+/or ctrl+shift+/ |
Comments (//or) |
| Ctrl+j |
Automatic code |
| Ctrl+h |
Show class structure diagram |
| Ctrl+q |
Show Comment Document |
| Alt+1 |
Quickly open or hide the project panel |
| ctrl+alt+ Left/right |
Go back to the last browse location |
| ALT + Up/down |
Quickly move the positioning between methods |
| Ctrl+shift+up/down |
The code moves up/down. |
| Ctrl+w |
Check the code to have another effect on the row |
| Ctrl+f12 |
The structure of the current file can be displayed |
| Ctrl+alt+t |
The code can be wrapped within a block, for example Try/catch
|
:
Android Studio shortcut keys use