Common function keys of eclipse

Source: Internet
Author: User
OrganizeCodeCTRL + Shift + J
 
Automatically Generated annotation information Alt + Shift + J
The automatically generated comments are all generated according to the preset format.
Modify the author and date annotation format: choose windows> preferences> JAVA> code style> code templates, and click comments in the window on the right. You can see many options, you can edit the annotation template.

For example, we want to set the author information and date information at the beginning of a Java file.

Select types and click Edit to set

/**

* @ Author $ {user}

* $ {Tags}

*/

Change $ {user} to the name you want to display. Delete $ {tags}, click Insert variable, and select date. The date information is automatically generated. Click sources-> ganarate element comment where you want to add comments, or use the shortcut key Alt + Shift + J, eclipse automatically adds comments to the class.

 
Display row number Ctrl +F10 select Show line numbers
 
Word completion: Alt +/
 
Display Search dialog box: Ctrl + H
Display reconstruction menu: Alt + Shift +T previous/Position of the next cursor: Alt + Left/Last right/Next member (member object or member function): Ctrl + Shift + up/Down select the closed element: ALT+ Shift + up/down/left/Right: CTRL+D insert a row on the current row: CTRL+ Shift +Enter inserts a row under the current row: Shift+Enter move the selected row up and down: ALT+ Up/Down organization import: CTRL+ Shift + O

 

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.