Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable auto comment in Netbeans 7.4

I do not want these comments when I create a new main class.

// TODO code application logic here 
/** 
* @param args the command line arguments 
*/ 

/** 
* 
* @author user 
*/ 

etc.

like image 875
Abhishek Pathak Avatar asked Dec 05 '13 06:12

Abhishek Pathak


2 Answers

If you are unhappy with autogenerated comments in Java Class:

  • Tools -> Templates -> Java -> Java Class -> Open in Editor -> delete what you do not like and save

You can leave just this:

<#if package?? && package != "">
package ${package};

</#if>
public class ${name} {

}
like image 132
vitfo Avatar answered Oct 24 '22 10:10

vitfo


The place to configure it is Tools -> Templates.

Take a look at Licenses/Default License. If your project does not have an license, this is what will be on the begin of the file.

like image 1
Jean Waghetti Avatar answered Oct 24 '22 09:10

Jean Waghetti