Set annotations such as auto-generated author,date in eclipse

Source: Internet
Author: User

Transferred from: http://blog.csdn.net/zhouhong1026/article/details/38396311

  1. Transferred from: http://hi.baidu.com/qianjian21/blog/item/2fecbd2f687ba03e1e308969.html
  2. Each new class will have a line of comments on it:
  3. /**
  4. * Class Description
  5. *
  6. * @author * * *
  7. * @date 2014-8-6 New
  8. */
  9. Feel this should be very good, many people develop together when can see who is who. The procedure is here to share with you:
  10. window->preference->java->code styple->code Template When you choose to do this, you'll see a box on the right that shows the code option, You open this option, click on the new Java files below him and then you click the Edit button to change his content to yours. For example:
  11. ${filecomment}
  12. ${package_declaration}
  13. /**
  14. * Class Description
  15. *
  16. * @author * * *
  17. * @date ${date} NEW
  18. */
  19. ${typecomment}
  20. ${type_declaration}
  21. Last click Apply----> OK successfully.
  22. 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 variables.

Set annotations such as auto-generated author,date in 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.