Android Survival Guide: Eclipse shortcut keys

Source: Internet
Author: User

everyday use of things, may be too accustomed to it. Always forget to learn how to use it efficiently. It is said that the sharpening does not mistake the chopping power, find time to grind the knife well. There are advantages to people. More efficient, save time to do what you really like to do. the shortcut to the use of Eclipse
1. Ctrl+d (Cmd+d on Mac)Deletes the current row. Delete the line where the cursor is located. In fact, not only the current line, but also the ability to select multiple rows, and then delete. Remember that it is in the unit of behavior.

2. Alt+up/alt+down Move the selected row up or down, Such a move can handle the indentation problem on its own initiative. So it is especially useful when adjusting the code. 3. Ctrl+i (cmd+i) 4. Ctrl+shift+f (cmd+shift+f on Mac) Format the code of your choice, based on the coded style defined in advance (preferences-> Java->formater) to adjust the code. 5. Ctrl+shift+o (Cmd+shift+o on Mac) organize the import. Import the class. Sort the import, removing the imports that are not used. 6. Ctrl+shift+r (Cmd+shift+r on Mac) open a file at high speed. 7. Ctrl+shift+t (cmd+shift+t on Mac) High speed open a Java type.

Attention. A file may contain multiple Java types, and the files in the project are not necessarily Java code. For example, the XML in Android must be opened with Ctrl+shift+r. 8. Ctrl+home/ctrl+end (Home/end on Mac) to the first and last line of the file.

This is pretty practical, too. General import and member variables are at the beginning of the file.

So it's especially handy to use these two keys when looking at these. 9. Home/end (Cmd+left/right on Mac) to the first or last character of a line. 10. ctrl+/(cmd+/on Mac) stares out the selected code area 11. alt+/ shows that he has volunteered to fill the whole. ctrl+1 (cmd+1 on Mac) shows a high-speed fix.

Alt+left/right Arrow moves to the previous or next edit location, which is the same as the yellow arrow function in the menu bar.

ctrl+l (cmd+l on Mac) go to a row There are some common shortcut keys that are common, meaning they are form systems, which are also shortcut keys that may apply to all forms applications on the same operating system platform.

ctrl+w (cmd+w for Mac) closes an open form or tab.

This is true for the browser, or the tab for Eclipse.

Ctrl + A (CMD + A for MAC) selects all and selects all of its contents for an open file. 17. Ctrl + t (cmd+t for MAC) opens the inheritance system for the class. 18. Ctrl + q (cmd+q for Mac) exits Eclipse. This should be used with caution. If you accidentally press, the file is not saved. Just wait till you die. 19. Ctrl+c/ctrl+v (Cmd+c/cmd+v for Mac) This does not need to explain, "Computer Culture Foundation" is not the people should know.

Ctrl+f6 (Cmd+f6 on MAC) switches in the recently opened two files (TAB).

This pass is often used to switch between two files. ctrl+e (cmd+e on Mac) toggles all open files.

Suppose the file is much more. This is not very useful. Because it is unordered.

Android Survival Guide: Eclipse 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.