Eclipse's most frequently used shortcut keys

Source: Internet
Author: User

Common shortcut keys:

Ctrl + 1: quick fix ( Use this shortcut to quickly pop-up hints when the editor appears with a wavy red line )

Ctrl + d: Delete the line where the current cursor is located

Ctrl + z: Undo action from previous step

Ctrl + y: Redo the previous step

Ctrl + S: Quick Save

Ctrl + M: maximize/restore the edit window, maximize the editing window, and broaden the view to see the context code easily.

Ctrl + O: is the outline function, quickly list the methods and properties in the current class, when the code is very long, you do not have to pull down to look over the code. This is a very useful shortcut key.

Ctrl + Shift + O: Import Package

Ctrl + Shift + C: quickly comment forward or select multiple lines (this is a single line comment "//")

Ctrl + Shift +/: quickly collapse all code for the current class (for example, methods)

Ctrl + Shift + *: quickly expand all the code in the current class (as opposed to the previous action)

Ctrl + Shift + F: fast Formatting (quickly formatting code in the current class)

Alt +/: content Assist, this is also a very useful feature. It's you. When your code strikes halfway, or when you hit the first few letters, pressing this shortcut will prompt you for the method or the package you want to import.

Alt + arrow keys (↑, ↓, ←, →): moves the current line while up and down, and the left and RIGHT ARROW keys move the cursor to the previous or next edit point ( common key )

Alt + Shift + R: quickly rename. (toquickly rename a class name or member name, this is useful, equivalent to choosing the class name you specified and then right-selecting Rename.) Move the cursor to the class name or member variable there, press the shortcut key on it, just enter the new name press ENTER to automatically update all the names, easy to use! )

Alt + Shift + C: Modify the function structure (in the example, to change the GO1 () to the private type, when you press the quick and easy amount of time will appear this dialog box)

The above font bold is the most commonly used by the personal shortcut keys.

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.