The procedure and share with you:
Window->preference->java->code Styple->code Template When you choose to go to this, you'll see a box on the right that shows the code option, and you can turn this option on. Click on the new Java files under him and then you click the Edit button to change his content to yours: (for example)
${filecomment}
${package_declaration}
/**
* @author-Bell writer www.wenhaozhong.com
* @version created: September 12, 2014 2:05:45
*
*/
${typecomment}
${type_declaration}
Last click Apply----> OK success.
Also modify the types with the comments option
/**
* @author-Bell writer www.wenhaozhong.com
* @version creation time: ${date} ${time}
* ${tags}
*/
In addition, the point is that the edit pop-up in the left-hand side of the editor window has an "Insert Variable" button, click there will show the current template can refer to variables, you do not like me everywhere to find the definition of the variable.
Set annotations such as author automatically generated by eclipse