Android Studio (02)-common shortcut key collection summary, androidstudio
1. delete a line of code with double keys, select that line, and press Ctrl + X/Y.
Copy this row to the next row. After selecting this row, Ctrl + D
Import unimported packages globally, Ctrl + O
Select a class name and import the class package name: Alt + Enter
2. Three-key combination
Ctrl + Alt + Space class name automatically completed
Ctrl + Alt + M as a method
3. Other shortcut keys
Shift + F6 indicates renaming
Alt + Insert add setter and getter methods and constructor
Ctrl + Alt + T can enclose the code in a block, for example, try/catch
Alt + Up and Alt + Down can be quickly moved between methods
Alt + Shift + cursor: copy the code in the row where the cursor is located to the next row.
4. Here is one I found on the Internet. The comparison between shortcut keys of various systems is as follows: