Android Studio for Mac common shortcut keys

Source: Internet
Author: User

① 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

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.