Using file templates for customizing author in generated files in NetBeans 6.7.*

Company’s code convention dictates own way in writing code. You need to put licence at the top of the file,write detailed descriptions of the class,set who is an author,set version of class or interface,comment your methods and so on.
At this time if not all but most of the IDE allows to automate this process.
And now I am going examine how we can do it in NetBeans 6.7.*.
But in this post I am going to show only how to change @author tag.
Developers who use NetBeans in daily job saw that after creating Java class or interface @author tag sets value automatically. But this value is simple user.name variable.

What if you need to put some other author name,for example we put @author FaYnaSoft Labs.

It is very simple. You need to visit:

Tools->Templates->User Configuration Properties->User.properties

templates

After opening User.properties you should see:

user_properties

Uncomment line number 8 and put your name,example:

example_template

It is great. Try to create for example new class,you should see

author

As you can see it is very simple operation.

IDE allows to automate a lot of stuff,I write one action per article,because it is easy to find such information with this approach.

I hope this post was helpful for you.

Share

No related posts.

2 comments to Using file templates for customizing author in generated files in NetBeans 6.7.*

Leave a Reply

  

  

  

You can use these HTML tags

<a href=""title=""><abbr title=""><acronym title=""><b><blockquote cite=""><cite><code><del datetime=""><em><i><q cite=""><strike><strong>

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna.