0

I know how to define static, standard code templates in NetBeans and I am wondering whether it's possible to define more customized and dynamic templates.

For example, when i type div.className to generate me a HTML <div> element with the class I specify.

4

1 回答 1

1

启动 netbeans 并转到:Tools->Plugins菜单、Available Plugins选项卡,然后搜索Zen Coding命中安装。

输入:div.className并点击:ctrl+alt+n获得:<div class="className">

您会注意到新Edit->Zen Coding菜单。安装和使用:https ://github.com/lorenzos/ZenCodingNetBeansPlugin#readme

阅读更多关于 Zen Coding 的信息:http ://code.google.com/p/zen-coding/

于 2013-04-27T17:15:54.757 回答