I dislike the default Javadocs generated for me when I create a Class or methods, especially the @author variable, which is the current system username on my windows box.
I would like to change it. Is this possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check
Preferences / Java / Code Style / Code TemplateSection
Comment / TypeYou can replace the
authortag by whatever value you need and it will have an effect on new generated classes.However, if the template is fine, but the value referenced buy the author tag is not, see this SO question:
${user}uses the value of theuser.nameenvironment variable; therefore, you can pass-Duser.name=My Nameineclipse.inito override it.Or, if you prefer, you can modify the shortcut to point to:
eclipse.iniis inEclipse.app/Contents/MacOS/if you right click and go Show Package Content.ZendStudio.iniand is found inApplications/Zend Studio.app/Contents/MacOS/.