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