如何编辑吸气剂NetBeans中的二传手模板? [英] How to edit getter & setter templates in NetBeans?
本文介绍了如何编辑吸气剂NetBeans中的二传手模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认情况下,NetBeans会生成3行getter和setter,如下所示:
By default NetBeans generates 3 line getters and setters like so:
public int getFoo() {
return foo;
}
有没有办法使它像这样在一行中生成它?
Is there a way to make it generate it in one line like so:
public int getFoo() {return foo;}
我在工具->选项->编辑器->代码模板
还有其他编辑方式或插件吗?
Is there some other way to edit them or maybe a plugin?
推荐答案
As seem you can't really, but I've found a patch in this blog post which modifies Netbeans source.
这篇关于如何编辑吸气剂NetBeans中的二传手模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文