Android Studio (02)-common shortcut key collection summary, androidstudio

Source: Internet
Author: User

Android Studio (02)-common shortcut key collection summary, androidstudio

1. delete a line of code with double keys, select that line, and press Ctrl + X/Y.
Copy this row to the next row. After selecting this row, Ctrl + D
Import unimported packages globally, Ctrl + O
Select a class name and import the class package name: Alt + Enter


 

2. Three-key combination

Ctrl + Alt + Space class name automatically completed
Ctrl + Alt + M as a method

 

3. Other shortcut keys

Shift + F6 indicates renaming
Alt + Insert add setter and getter methods and constructor
Ctrl + Alt + T can enclose the code in a block, for example, try/catch
Alt + Up and Alt + Down can be quickly moved between methods
Alt + Shift + cursor: copy the code in the row where the cursor is located to the next row.


 

4. Here is one I found on the Internet. The comparison between shortcut keys of various systems is as follows:



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.