Using eclipse to write Java code, you can automatically generate comment code, but automatically generated comment information is pre-set format.
In fact, we can set the format of the information we want to display in eclipse.
Method: Click Windows->preferences->java->code style->code Templates,
Select the comments in the right window to edit the specific comment information.
For example: Set author author information and date information.
Select types, click Edit, you can modify the original template, the original format is as follows:
/**
* @author ${user}
* ${tags}
*/
In the edit interface, you can click Insert Variable, you can add many elements, such as: select Date, so that the date information is automatically generated.
After we have set up the test, the automatically generated comment information is:
/**
* @author ${user}
* 2016-4-1
*/
Eclipse Accelerator automatically generates comment code, modifies pre-format