[SOLVED] How can I change the automatically generated @author tag?

Hello to everyone,

exist in jme a way to change the automatically generated @author tag, which is generated automatically when creating classes.


/**
 *
 * @author authorname
 */
public class SomeClass {...}

Instead of this, the following should always be generated


/**
 *
 * @author anotherauthorname
 */
public class SomeClass {...}

I can not find anything on this.

Thanks for any help. :3

Best regards
EsKay.

The field is specified in a Netbeans templates:

https://netbeans.org/competition/win-with-netbeans/customize-java-template.html

It is {user}

If you go to tools -> templates -> settings, you can set the user field there

1 Like

Thank you first for the answer. :3

Please can you give me a little bit more support.
The link does not really help me.

I use jMonkeyEndine SDK 3.0. (not NetBeans) and I can not find a field in the settings to change the user variables.

It is possible to change @author tag in
Tools/Options >> Editor[Code Template] on JavascriptDocumentation

jme options

But I have no idea how to change the user variables.
Experiments such as
@author ${NAME}
or
@author $NAME
or
@author NAME
not work.

I think I need to assign the user variable a specific value, but how?

Best regards
EsKay.

Open Tools/Templates. Bring up the Settings of any Java type and enter “user=EsKay”

1 Like

You are great. :smiley:

@rickard said: Open Tools/Templates. Bring up the Settings of any Java type and enter "user=EsKay"

This works perfectly.
Thank you very much.

@wezrule >> thanks too.
You’ve already written the solution, but because of the given url location I’ve been looking in the wrong place, and the solution overlooked.
Sorry for that.

Wish you a good evening. :}

EsKay