Modify the author name in the comments that Eclipse automatically generates

Source: Internet
Author: User
Tags comments

These days you will generate Javadoc for the project's source code, and the author name in the Eclipse auto-generated comments defaults to the current system's username, for example my system username is user

/**

* @author User

*

*/

I always have to change my own name, this is much cumbersome ah! Now calculate to have free, Baidu look, someone on the net said to create a new code Template, currently only see this on-line provides method!

Later, I decided to explore the Eclipse Configuration page, and finally found the code Template instead of creating a new code template!

1. First look at the default values for the Eclipse-related configuration interface:

Everyone should remember which page, which item Ah!

2. See the default is @author $ (user), now to modify it, however, can not directly in the text displayed below the area modified! You need to click "Edit" above, which will pop up the dialog box and modify the contents:

OK, then go back to the original see the content has been modified, then remember to click on the first picture of the lower right corner apply, and finally click OK, finished!

SOURCE http://icansoft.blog.51cto.com/268543/55871

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.