Thursday 29 January 2015

Netbeans - Code Template

Tired of typing the same line of codes in Netbeans over and over again? Use Netbeans' code-template feature!


Usage example:
if you want to output a line using System.out.println(), you just need to type "sout", then immediately press 'TAB'. it will expand sout into System.out.println("");, and place the cursor inside the double-quotes.

You can get the list of default templates (and add new ones) in the option page as per screenshot above.

No comments:

Post a Comment