score:184

Accepted answer

i'm not sure if there's a way in eclipse itself. but from what i can find, ${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"

as shown in this blog entry.

@author ${user}

score:182

windows > preferences > java > code style > code templates > comments

select types and edit the template to insert another value (possibly a fixed one for now, or change the user.name property as mmyers suggests)

/**
 * @author myuservalue
 *
 * ${tags}
 */

code template preferences


Related Query

More Query from same tag