Common eclipse shortcuts and eclipse shortcuts

Source: Internet
Author: User

Common eclipse shortcuts and eclipse shortcuts
The most common shortcut keys in Eclipse

 

Those familiar with eclipse must be very touched by its shortcut keys. many, but usually around 10. according to the practice in the project, the following is a little help to some unfamiliar friends.

 

Ctrl + Shift + O: import and manage imports statements

Ctrl + Shift + T: Open Type Search Class File

Ctrl + Shift + F4: Close the window opened

Ctrl + O: Open declarations

Ctrl + E: Open the Editor (switch window)

Ctrl +/: annotate the row

Alt + Shift + R: Rename

Alt + Shift + L: extract local variables

Alt + Shift + M: Extraction Method

F3: Open Declaration

 

The following content is added by netizens:

 

By sitinspring

Ctrl + D: delete this row

Ctrl + SHIFT + F: integer

 

By Gandi Feng

Ctrl + Alt + ↑: copy the row down (up)

Alt + ↑: Move the row down (up)

Alt +.: Output prompt

Note: I personally think this shortcut key is the most useful. (1) in the java class, to output the main method, you only need to enter main and then press enter to press the shortcut key; to output the System. out. println (), you only need to enter syso and press enter with this shortcut key. For example, to overwrite the toString () method of the parent class, you only need to enter to and then press enter with this shortcut key; for example, if you want to use a class without import (such as Calendar), you only need to enter the Ca and then use the shortcut key to select from the upper and lower keys. For example, if you want to generate a get for a field, set Method, you only need to enter get and then use this shortcut key to generate (the default is public); then, for example... (2) You can use this prompt to enter tags on the jsp page (tag attributes are prompted in the tag ). (3) This shortcut is also available in xml.

 

By Gandi Feng

Ctrl + S: Save the file.

Others include Ctrl + A, Z, X, C, V; Shift + →; Shift + cursor; here, we are tied together to facilitate your summary and query.

 

By yueda

Alt + shift + j add doc comments to the Function

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.