Everytime I create a new Java class in the Netbeans IDE, I get this comment at the top of the generated class file (even above the package declaration) by default:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
I've been exploring the templates for a while now and I cant seem to work out which template this message belongs to. Shouldn't it appear in plain text somewhere, being a human readable message and all?
To change the main class being used, go to the File menu and choose Project Properties. This dialog gives all the options that can be changed in a NetBeans project. Click on the Run category. On this page, there is a Main-Class option.
You now have two code templates. The first will be shown when "snf" is typed, followed by the expansion key, while the second requires "pe" to be typed, prior to the expansion key being pressed.
Tools menu → templates → Licenses → Default License
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With