In Eclipse, I can define a template like this:
so that when I'm typing I type the 开发者_开发问答first letters of the template name, choose the template:
and it pops in the code with variables:
What is the best way to get this functionality in NetBeans?
Code templates.
http://netbeans.org/kb/docs/php/code-templates.html
Link goes to a PHP-specific tutorial, but it's the same for any language that your Netbeans build has support for.
精彩评论