Set annotations such as author automatically generated by eclipse

Source: Internet
Author: User

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

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.