File operation:
- Alt+shift+r
Rename a file, equivalent to right-click a file->refactor->rename, two-step operation to change one step
- Ctrl+shift+c
The absolute path of the copied file over the entire disk
- Ctrl+alt+shift+c
Copy the file in the current project's path, that is, on the absolute path basis, the "project name/" and the previous part of all removed
- Ctrl+f4 or shift+ click the window title
Close the current window
- Ctrl+shift+f4
Close all windows
Text editing:
- Ctrl+d
Delete the row where the cursor is located and place the cursor on the next line
- Ctrl+shift+delete
Remove from cursor to end of line
- Ctrl+delete
Remove from cursor to end of word
- Ctrl+backspace
Remove from cursor to Word header
- Shift+enter
Adds a blank line below the line at the cursor and moves the cursor to the beginning of the new line, eliminating the action to move the cursor to the end of the current line
- Ctrl+alt+enter
Adds a blank line above the line at the cursor and moves the cursor to the beginning of the new line
- ctrl+/
Comment on each line, either commenting the Java code or commenting out an XML code
- ctrl+shift+/
Block annotations, valid for both Java and XML
- Ctrl+alt+l
Automatic Formatting code
- Ctrl+alt+o
Clear Invalid Import
Very useful page Jump:
In the class list of Android studio, for the identity of different class files:
- For the interface, the green background of the "I" is expressed;
- For abstract classes, the upper left corner of the 1/4 Circle is expressed in green;
- For final class, the upper left corner is indicated by a white point;
- Other general classes are represented by the blue background "C".
Android Studio shortcut keys