我在 NetBeans 中有一长串代码模板,我想以某种方式对它们进行排序,因为我不记得所有的代码模板。我的代码模板的缩写是:user_template,类似于:
alpha_sop wich does:
System.out.println(${cursor});
还有另一个:
alpha_psvm
public static void main(String[] args) {
${cursor}
}
还有很多很多...有没有一种方法可以在我编写 alpha_ 并按 ctrl+space 后列出列表中包含 alpha_ 下拉列表的所有可用模板?我有点喜欢从我自己的列表中选择...
类似于:
alpha_ ctrl+space
*Dropdown*
alpha_psvm (with description of code)
alpha_sop (with description of code)
最佳答案
我目前使用的是 NetBeans 7.4,并且似乎 CTRL+SPACE
实际上给了我一个代码模板建议列表。
我不确定自定义模板是否在代码帮助中注册,似乎有一些bug reports已经做好了。
Code Assistance in the NetBeans IDE Java Editor: A Reference Guide
关于java - Netbeans 关于代码模板的代码帮助,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23501042/