score:191

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 user.name environment variable; therefore, you can pass -duser.name=my 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 -duser.name="cleverusernametouseinsourcecode"

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

score:1

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

score:3

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.

score:3

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

enter image description here

score:6

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


Related Query

More Query from same tag