Accepted answer

check preferences / java / code style / code template

section comment / type

you can replace the author tag by whatever value you need and it will have an effect on new generated classes.

code templates

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 the environment variable; therefore, you can pass name in eclipse.ini to override it.

or, if you prefer, you can modify the shortcut to point to:

c:/java/eclipse/eclipse.exe -vmargs"cleverusernametouseinsourcecode"

  • macos: aram kocharyan mentions the eclipse.ini is in if you right click and go show package content.
  • zendstudio: rofflox comments the file is named zendstudio.ini and is found in applications/zend


you should consider using jautodoc, which is a very useful plugin for eclipse. the parametrization is way more advanced than the standard eclipse generation.


spring tool suite (popular eclipse customization for spring development) uses sts.ini. on windows i found it in the same dir as an app launch executable.


to use a git username and email you can use the variables ${name:git_config(} and ${email:git_config(}.

enter image description here


look at window -> preferences -> java -> editor -> templates.

Related Query

More Query from same tag