Two ways eclipse modifies the default author

Source: Internet
Author: User

The user name of the system is logged in when you create a new Java file by default in eclipse, but it is best to write the developer's real name when developing the project, so it is easy to contact the author to solve the problem when the code author.

There are two ways to modify the default author in eclipse:

1. Modify the Eclipse configuration file Eclipse.ini

Join behind the-vmargs

-duser.name=zhansan

Restarting eclipse after saving is in effect (note, be sure to load-vmargs behind, otherwise no effect).

2, set Eclipse parameters

Windows-->preference-->java-->code Style-->code templates-->code-->new java files
The contents are as follows:

${package_declaration}
/**
* @author ${user}
*
* ${date}${time}
*/
${typecomment}
${type_declaration}

Modified to:

${package_declaration}
/**
* @author Zhansan
*
* ${date}${time}
*/
${typecomment}
${type_declaration}

Two ways eclipse modifies the default author

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.