In order to improve work efficiency, we have specially organized the MAC version of Android Studio shortcut keys. If there are any further details, we will continue to add them!
⌥—> option|alt
⇧—>shift
⌃—>control
⌘—>command
⎋—>esc
↑↓←→
Code
alt+F7:Find usage
alt+command+L: Format code
alt+control+O: Optimize import (remove useless import)
command+O:Override Methods
command+I:Implement Methods
command+B: Declaration view definition
alt+command+B: View its implementation
command+U:Super Method(Class)
control+up and down arrow keys: Previous/Next Method
(shift+)F2: Express positioning and highlighting error (deprecate, unused)
command+Z: Undo canceled
shift+command+Z:Redo Typing
alt+enter: Introduce packages, add comments...
control+enter:generate setter,getter…
shift+command+T: Add Test
command+W:Extend Selection
shift+command+W:Shrink Selection
command+P: parameter prompt
command+Y(X): Delete the current line (cut the current line)
command+F11: Add/cancel bookmark
shift+F11: Show bookmark list
command++/-: Expand and shrink the code
shift+command+up and down arrow keys: Move Line Up/Move Line Down
Search
command+F:Find
command+R:Replace
control+shift+F:Find in Path
control+shiftÏ+R:Replace in Path
alt+command+left and right direction keys: Back/Forward operation
command+E:Recent File
shift+command+E:Recently Change Files
shift+shift: Search Method or Class (Search Everywhere: command+N, shift+command+N, shift+alt+command+N)
command+N:Search Class
shift+command+N:Search File
shift+alt+command+N:Search Symbol
Run/Debug
shift+F10:Run
shift+F9:Debug
command+F9:Make Project
shift+command+F9:Make Module
command+F2: Close the current execution task
command+F8: Add/cancel breakpoint
shift+command+F8: View all breakpoints
Debug:
F7:Step Into
F8:Step Over
shift+F8:Step out
F9:resume
alt+F9:Run to Cursor
Refactor
shift+F6: Rename
command+F6: Quickly modify the parameters of the function, return values or class to add generics, etc.
F6: Move fast moving method or class
F5: Copy fast mobile class
alt+command+C: Extract Constant variable
alt+command+V: Extract Variable (Local variable)
alt+command+F: Extract Field variables
alt+command+M: Extract Method
Window
control+left and left direction keys: tab switch
alt+F4: Close the current tab
esc+command: Switch the current window
shift+esc: Hide sidebar
VCS
command+K:Commit Changes
shift+command+K:Push Commit Changes
command+T:Update Project
Setting
command+,:Android Studio Preferences
command+;:Project Structure
Thank you for reading, I hope it can help you. Thank you for your support for this site!