Saturday, June 9, 2012

How to change @author property in Netbeans 7

When you create a new class in Netbeans, it automatically create code like this:

To change the author name you should do the following:


Go to Tools -> Templates. You will see the following window:

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

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

That's all.
Good luck.

14 comments:

  1. Simple answer and it works :) Good job and thanx!

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. Fabulous Post ! Thank you so much for sharing this one really well defined all peaceful info,well really like it. Thank you so much for sharing this one. - corporate lawyers Cardiff

    ReplyDelete
  4. Hloooo...
    I change in this way
    #
    # Here, or in other properties files in this directory, you can define
    # various properties that you want to make available to the template
    # processor while creating various templates.
    #

    # uncomment the next line and specify your user name to be used in new templates
    #user=Aayushi

    but when i create new jsp..then it again show author :hp

    ReplyDelete
    Replies
    1. remove the "#" from before the user

      Delete
    2. its not working even if l remove'#'

      Delete
  5. i have uncommended it but it still doesn't work for me.
    nothing is affected, even after a restart.
    (NetBeans 8.2)

    ReplyDelete
  6. It’s very informative and you are obviously very knowledgeable in this area. You have opened my eyes to varying views on this topic with interesting and solid content. Confidence Training Perth

    ReplyDelete