Android Studio (01)--Common shortcut key Collection summary

Source: Internet
Author: User

1. Double BondDelete a line of code, select that line, ctrl+x/y
Copy the bank to the next line, and after selecting the bank, ctrl+d
Global import of packages not imported, Ctrl+o
Select a class name to import the package name for the class: Alt+enter



2, three key joint

Ctrl+alt+space class name Auto-complete
Ctrl+alt+m extraction as a method


3. Other shortcut keys

Shift+f6 to change his name.
Alt + Insert to add setter and getter methods, as well as constructors, etc.
Ctrl+alt+t can wrap code inside a piece, such as Try/catch
Alt+up and Alt+down can be moved quickly between methods
Alt+shift+↓: Copy cursor line code to next line



4. IllustrationHere is a picture I found from the Internet, the comparison between the various system shortcuts, as follows:



Android Studio (01)-Common shortcut key Collection summary

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.