简体   繁体   中英

What is the closest equivalent in Netbeans to Eclipse's Templates (code macros)?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM