① Code Movement
1.
Control ALT Space ---> Code auto-Complete2.
shift ALT Up/down ---> Code moves up and down3.
command D ---> Copy the current cursor line code to the next line4.
command X ---> Cut a selected line of code5.
command Delete--delete the cursor line6.
command Z ---> fallback7.
Alt < (self-setting) ---> Quickly move previous method between methods in a class8.
alt > (self-setting) ---> Quickly move next method between methods in a class9.
alt Up/down ---> Expand narrow Selection
alt shift Up/down ---> Move code up or down② Code View
1.command O ---> Open a class
2.
shift command O ---> Open a file, XML file, layout file
3.
command B ---> View a variable's declaration to see the source of a variable
4.
command U ---> View the parent class of a class
5.
Ctrl ALT H ---> View a method's call level template
6.
command Y (Set yourself)---> New pop up a small window to see the specifics of a method7.
CTRL H ---> Show hierarchy chart for class8.???
alt command left---> Code return shortcut key, return method entry9.
CTRL tab ---> Switch between Windows
command Plus/delete ---> Collapse, unwind code blocks
Command 1 ---> Hide, show Project Sidebar
alt E (self-setting) ---> Positioning highlighting errors
alt command O ---> Find variables in a class by certain characters
alt F (self-setting) ---> Displays the current file structure, which is the method in the Display class (You can manually select an anonymous method).
CTRL O ---> Ways to replicate a parent class
alt command/[ ---> Jump to the beginning or end of curly braces when viewing code.
alt command T ---> Quick build structure
Ctrl +
left mouse button ---> Quickly reach the corresponding Layout.xml file
Ctrl ALT O ---> Delete unused import
alt command M ---> Extract code block refactoring③ Automatic code generation shortcut keys
1.command J ---> Automatically generate template code
2.alt Enter ---> Auto-complete code
④ Global Find and replace
1.command F ---> Find
2.command R ---> Replace
3.command E ---> Open the recently opened template recent files
4.command alt L ---> Format code
Android Studio for Mac common shortcut keys