Netbeans: how to change @author

NetbeansJavadocNetbeans 7

Netbeans Problem Overview


When creating a new class or interface in Netbeans IDE, an "@author ...." tag appears. How to change its value? If possible, I would like to change it by using Netbeans menu and not by editing some config files :) I'm using Netbeans 7.2

Netbeans Solutions


Solution 1 - Netbeans

Steps:

  1. Go to Tools -> Templates.

  2. Click on Settings button. A new panel with template settings will appear in your IDE:

  3. Uncomment the last line and change the value of "user" to what ever you like to be inserted after the @author tag.

PS: I think this blog will better explain how to update author template

Solution 2 - Netbeans

In case someone else finds this while looking for the same functionality in Eclipse: Window -> Show View -> Templates

Solution 3 - Netbeans

-In netbeans go to Tools -> Templates -> Settings -last line of the file, write like this user=xyz

N:B: Instead of xyz you could be used your name.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLukasz CzerwinskiView Question on Stackoverflow
Solution 1 - NetbeansRavindra ShekhawatView Answer on Stackoverflow
Solution 2 - NetbeansRyan DView Answer on Stackoverflow
Solution 3 - NetbeansArif RafsanView Answer on Stackoverflow