Great news for netbeans is dedicated here: (netbeans 7.0)
Tools -> Options > Editor > Code Templates: choose Language (Javascript in this case)
Look for " if " Abbreviation:
Edit Advanced Text Definition:
from this:
if (${expr}){ ${cursor} }
:
if (${expr}) { ${cursor} }
Save settings.
Now inside the js file type if , and press [tab] ... and you got it ...
Can you imagine all the possibilities with these templates?
Igor Parra
source share