read

Here is a quick way to change the default author name when using JavaDoc comments in your Eclipse projects. Simply edit your eclipse.ini file found in the root directory where you placed Eclipse. I have Eclipse at /opt/eclipse, so my path would be /opt/eclipse/eclipse.ini. Once editing this file add the following line and save.

-Duser.name=Adam Presley

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:

/**
 * Alert some message!
 * @author Adam Presley
 */
function alertSomething(msg) { alert(msg); }

Simple yet useful. Happy coding!

Blog Logo

Adam Presley


Published

Image

Adam.Blog()

Adam Presley's blog

Back to Overview