Change Default Author Name for JavaDocs in Eclipse
posted 29 Dec 2010 03:46 by Sanjeev Kumar [ updated 11 Nov 2011 06:17 ]
/**
* Test default author in JavaDocs
* @author SK0012345
*/
public class TestClass {
}
Here
is a quick way to change the default author name in your Eclipse
projects. Simply edit your eclipse.ini file found in the root directory
where you placed Eclipse. I have Eclipse at
C:\devtools\development\eclipse, so my path would be
C:\devtools\development\eclipse\eclipse.ini. Once editing this file add
the following line and save.
-Duser.name=Sanjeev Kumar
After
saving restart Eclipse and when you do a JavaDoc comment and use the
author attribute by typing @author and pressing enter on the
autocomplete you will see something like this:
/**
* Test default author in JavaDocs
* @author Sanjeev Kumar
*/
public class TestClass {
}
Reference
http://www.javagyan.com/useful-tips/changedefaultauthornameforjavadocsineclipse
No comments:
Post a Comment