Adding Date to the template in netbeans

Updating netbeans template with date

It is common for the source code file to contain the name of the author, copyright notices, the purpose of the script and the date as well.

Can you find the longest palindrome from given sequence of characters?

IDEs would come with template of the source file to auto populate that for you. Netbeans is also doing that.

Netbeans also provides default template placeholders for author and other artifacts.

Importing packages to eclipse from maven – See how easy it is

All the others seems easy to proceed, but if you want to add date [@since] to your source file in netbeans here is how to do it.

Here is how you can add automatic date to the template.

1. Go to tools->templates
2. Select file that you are working on
3. add @since ${date} to the template where you would want to show date

 

Step by step tutorial for nodejs, angularjs and mongodb

Passing all jars to classpath from command line when compiling java