Spiga

Default Author Name in Eclipse

Default Author Name in Eclipse


By default, the Eclipse show the file author name as the Windows Id name. This is because, the eclipse read the ${user} variables value from the environment variables and display that variables. So we can change that default values in different name.

Different Ways:
1) By changing the eclipse setting for that. Go to the
  Window -->Preferences -->Java -->Code Style -->Code Templates -->Comments
  Change the Comments format over there, like
  If it is like this:
  /**
  * @author ${user}
  *
  * ${tags}
  */
  Romove this with:
  /**
  * @author Sonu Mishra
  *
  * ${tags}
  */

2) Use the VM arguments -Duser.name=Sonu Mishra. You can set this in the eclipse.ini files of eclipse.