Sunday, February 17, 2008

How to add a code templates in "Netbeans"..

this is simply means using 'abbreviations' for
commonly code segments.

1.first try default abbrevation
in a java application 'psvm' and press 'tab' key
it will turn in to...

public static void main (String[] args) {


2.Go to,
Tools>Options>Editor>Code Templates

3.Select your language

4.New>(type your abbrv-eg'sop')>OK

5.Type the code


further.. set the cursor point
type code like this


notice the pharse--${cursor}

No comments: