giovedì 16 ottobre 2008

To change this template, choose Tools | Templates

Every time I create a new class in Netbeans it creates a file with this text an the top of the .java file:

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
What is this? I dont want it? How to remove it? I try to follow the instructions.

I select from the menu Tools > Template and the Template Manager appears.


Now. Where I should go?
I asked this to myself for a lot of time...
Now I discovered the solution, I should choose

License > Default Licenses

then click Open in Editor. This will open the Default License file that you can easily customize:

<#if licenseFirst??>
${licenseFirst}

${licensePrefix}To change this template, choose Tools | Templates
${licensePrefix}and open the template in the editor.
<#if licenseLast??>
${licenseLast}

0 commenti: