If Eclipse isn’t generating Javadocs that have the
@author name you want displayed, this should help.
- Navigate to the Applications > eclipse folder.
- Right click on the eclipse application launcher and choose the
Show Package Contentsoption.
- Navigate to the Contents > Eclipse folder and open the
eclipse.inifile in the editor of your choice.
- In the
-vmargsand add the line
-Duser.name=atebitbyteunderneath it, where atebitbyte is the name you want displayed (e.g.,
@author atebitbyte) when you generate Javadoc comments.
- Save the file, reopen Eclipse, and any future comments should have the new author name.
Modifying Comment Templates
Another way to modify the comment templates is to open the Eclipse > Preferences… menu and go to Java > Code Style > Code Templates. You can write and export your own custom templates, or import a template you made previously.