Sort and share shortcuts for original mac AndroidStudio and help studio quickly organize code

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.