Android Studio shortcut Guide (this article is continuously updated)
This is some of the shortcut keys that I have come up with when using Android Studio. I will continue to improve this article later. You are also welcome to add them and complete them together.
Shortcut Key
Delete and cut the row: Ctrl + X
Copy a row: Ctrl + D
Code Format: Ctrl + Alt + L
Manage imported classes: Ctrl + Alt + O
Suggestion: Alt + Enter
Automatically complete remaining code: Ctrl + Shift + Enter
View the Ctrl + P parameter of a Method
Code package: Ctrl + Alt + T after the code is selected
Remove package: Ctrl + Shift + Delete
Template code: Ctrl + J
Quick View of class structure: Ctrl + F12,
Quickly check who has called this method: Ctrl + Alt + H,
View the implementation of a method without leaving the current class: Ctrl + shift + I
Add the current position to the bookmarks or remove from the bookmarks: F11
View bookmarks: Shift + F11
Move UP/Down a line of code: Alt + Shift + UP/Down
Move UP/Down: Ctrl + Shift + UP/Down
Delete row: Ctrl + Y
Maximum/minimum window: Ctrl + Shift + F12
Rename: Shift + F6
To enable multi-row editing, you must enable columns-based replication: Alt + J.
Alt + left mouse button, column selection mode
When the code is automatically supplemented, press Enter to select the prompt code that will not overwrite the previous Code. If you select the Tab key, the prompt code will overwrite the previous code.
View which classes are inherited by a Class: Ctrl + Alt + B
Convert local variables to global variables, Ctrl + Alt + F
Method parameter prompt: Ctrl + P
Quickly locate any file: Shift twice
Search Class: Ctrl + N
Search for files: Ctrl + Shift + N
Quickly locate the method or attribute in the class: Ctrl + F12
Quickly locate the current class error or warning: F2 or Shift + F2
Quickly locate the class or method definition: Ctrl + B
Search for: Ctrl + F on the current page
Find and replace on the current page: Ctrl + R
Find Ctrl + Shift + F in the selected file directory
Find and replace Ctrl + Shift + R in the selected file directory
The last or next position of the cursor: Ctrl + Alt + Left/Right
Show comments: Ctrl + Q
Quickly override the parent class method: Ctrl + O
Quickly generate getter/setter, toString (), and constructor for JavaBean: Alt + Insert
Quick View of the class inheritance structure: Ctrl + H
Undo: Ctrl + Z
Restore and undo: Ctrl + Shift + Z
Press Enter to move to the next line Shift + Enter
Press Enter and move the cursor to the previous line: Shift + Alt + Enter
Case-sensitive conversion Ctrl + Shift + U
Show the structure window of the class: Alt + 7
Return to the last edit position Ctrl + Shift + Backspace
Quickly collapse the code and make the Code look like a Lambda expression: Ctrl + Shift + "-"
Quickly expand the folding code: Ctrl + Shift + "+"
Extract A method: Ctrl + Alt + M
Extract a variable: Ctrl + Alt + V
Quickly traverse a list set. for example, if the variable name is list, Enter: list. for and press Enter.
Reconstruction: Ctrl + Alt + Shift + T
Debugging
Right-click a breakpoint to add conditions to the breakpoint
Attach DebuggerYou can quickly enter the Debug mode (Attach Debugger is the icon of the cell phone). Similar to Eclipse, You can first start the App and then mount it to the Debug mode.
Debugging, press and holdAltClick the variable or statement you want to view. To view more information, clickAlt+f8Call upEvaluate ExpressionIn the window, enter a custom statement from the row.
Add a temporary breakpoint. the breakpoint is automatically removed after the first execution: Ctrl + Alt + Shift + F8
You are welcome to add ............