Android studio is an IDE for developers to eat, so it must be used very easily. Mastering shortcut key operation can not only improve the efficiency of writing code, but also rely on mouse operation
Alt key related
Alt+1
Switch between project view and file viewAlt+6
Show hidden logcat viewAlt+左右方向键
Switch between multiple open filesAlt+Enter
Import packages and resolve file errors
Ctrl key related
Ctrl+W
Quickly select a row, multiple operations can select a methodCtrl+N
Quickly search for recently opened class filesCtrl+D
Copy the current line to the next lineCtrl+Y
Delete a lineCtrl+J
Prompt the corresponding java template list, click Enter to quickly generate common template codeCtrl+H
Show the inheritance tree of the current classCtrl+F
Find in current fileCtrl+R
Find and replace in current fileCtrl+B
Jump to the parent class of the current class, similarCtrl+鼠标点击
Ctrl+G
Which specific row and column of the file can be located
Shift key
连续双击 Shift
Quickly search recently opened java filesShift + F6
Rename files, folders, etc.Shift + F10
Run the debug application to install to the deviceShift+Enter
Insert a line below the current line
Other key combinations
Ctrl+Shift+N
Find filesCtrl+Shift+U
Case conversionCtrl+Shift+R
Complete global search and replacement throughout the projectCtrl+Alt+C
Generate global constantsCtrl+Alt+V
Generate local variablesCtrl+Alt+F
Generate member variablesCtrl+Alt+M
Extraction MethodCtrl+Alt+O
Quick import package
Note: Don't press Ctrl + Shift + F randomly. It is related to the system's switch between simplified and traditional Chinese. Sometimes the inexplicable input method becomes traditional. Just press this key combination and press again
Don't memorize it, you can make a good one. . . Get here today and keep updating. Supplement the corresponding screenshot or gif