Sort and share shortcuts for original mac AndroidStudio and help studio quickly organize code
I have been using Android studio for six months. I have been switching from Windows to mac for a week. By checking some information and exploring for yourself, you can record some common shortcut keys and hesitate to change them, so they are all native. I would like to share with you! Welcome to add ~
Search and view:
Com + O: Class search
Com + shift + O: file search
Com + alt + O: Search for attributes and variables
Com + shift + F: Global Search
Com + F: Search for the current class
Fn + com + F7: Jump to the location where the method is called
Fn + alt + F7: displays where the method is called (global)
Fn + com + F12: view all methods in the class
Com + U: view the method with the same name as the parent class.
Com + E: recently opened file
Ctrl + O: View and implement the parent class Method
Ctrl + alt + O: Remove invalid references (for example, export packages without reference)
Ctrl + H: class hierarchy
Com + R: Replace the current class, and mark the next class with com + G.
Com + shift + R: Global replacement
Code Completion:
Alt +/: code prompt (the only shortcut key that has been changed, modification method: settings --> Enter class name completion in the search box to modify)
Alt + com + F: automatically generate global variables
Debugging:
Fn + F8: Run
Fn + F7: Access Method
Com + alt + R: Allow and jump to the next breakpoint
Others:
Com + shift + U: case-insensitive Conversion
Com + alt + T: try-catch, while, if, etc.
Ctrl + T: refactor the Panel
Com + alt + M: extraction as Method
Com + fn + P: view method parameters
Com + shift + enter: cursor line feed
Shift + alt + ↑ ↓: move up and down (move through method)
Com + shift + moving forward: move up and down (automatically skip the method to move)
Fn + com + shift + F12: Full Screen Display
Fn + F12: Open the bottom Information bar
Ctrl + com + F: overwrite the entire Desktop