简体   繁体   English

当我在Netbeans中更改模板时,为什么什么都没发生?

[英]When I change templates in Netbeans, why doesn't anything happen?

I want to modify the "Java class" template, so that the class javadoc comment includes more than just the author. 我想修改“ Java类”模板,以便类javadoc注释不仅包含作者。 In Netbeans 6.8., I go to Tools > Templates > Java > Java Class, and modify the template. 在Netbeans 6.8中,我转到工具>模板> Java> Java类,然后修改模板。 However, nothing seems to change. 但是,似乎没有任何改变。 I tried restarting Netbeans, just in case, but the old template is still used. 我尝试重新启动Netbeans,以防万一,但是仍然使用旧模板。

How do I get Netbeans to recognize changes to the template for Java Classes? 如何使Netbeans识别Java类模板的更改?

Well, I was putting it off, but it seems to work. 好吧,我推迟了,但是它似乎起作用了。 Changes to a template only affect New files. 对模板所做的更改仅影响New文件。 Be sure you aren't editing one template and instantiating another. 确保您没有在编辑一个模板并实例化另一个模板。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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