如何将光标放在NetBeans Java文件模板中? [英] How to place cursor in NetBeans Java file templates?
本文介绍了如何将光标放在NetBeans Java文件模板中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在NetBeans中创建接口,类等时,我希望光标位于JavaDoc区域中.您可以将${cursor}
用于非基于文件的模板,但这不适用于文件模板.
I would like to have the cursor in the JavaDoc area when creating interfaces, classes, etc. in NetBeans. You can use ${cursor}
for non-file-based templates, but this doesn't work for file templates.
<#if package?? && package != "">
package ${package};
</#if>
/**
* ${cursor} <-- Inserts a message that "cursor" is an unknown variable. :(
*
* @author ${user}
*/
public class ${name}
{
}
文件模板有类似的机制吗?
Is there a similar mechanism for file templates?
推荐答案
由于某种原因,该功能尚未实现.有关详细信息,请参见此问题.
For some reason this feature hasn't been implemented (yet). See this issue for details.
这篇关于如何将光标放在NetBeans Java文件模板中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文