Scene One: Create a class when adding his comments, in which better information
/**
* Class Description
*
* @author ****
* @Date 2014-8-6 New
*/
Steps:
window-> preference-> java-> code styple-> code template when you choose to go this time will see a box on the right shows the code this option, you point to open this option, the following points about his New Java files then you point edit button, put him into your content on it. E.g:
${filecomment}
${package_declaration}
/**
* Class Description
*
* @author ****
* @Date $ {date} New
*/
${typecomment}
${type_declaration}
The last point apply ----> OK success. .
Also add that there is a "Insert Variable" button in the edit point edit window pops up to the lower left corner, click where it will display the current template can reference variables
Scene 2: generation information when the above comments in the code class.
Eclipse code templates to modify
the menu Window-> Preference -> Java -> Code Style -> Code Templates Select Comments on the right, which will Types item, and then choose the right "Edit", enter edit mode, @author $ { the user} $ {user} into your own name can be.
Please note that this position has generated several comments: type classes, interfaces, fields attributes, method method, constructor constructor, select the location you want to generate