Search code examples
netbeanscomments

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.


Solution

  • 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} {
    
    }