Netbeans 8.1代码完成游标的位置

时间:2016-09-20 21:22:38

标签: java netbeans code-templates

我有一个这样的课程

public class ReplaceIfRemove{
}

我已经像这样创建了一个代码完成

public static void main(final String[] args){    
    final ${CLASS currClassName} clazz = new ${CLASS currClassName}();
    ${cursor}    
}

除了光标不在下一行之外,一切都像魅力一样。

根据文件说明。

The final position of the cursor is determined by the ${cursor} parameter. This parameter is described in the section Reserved names.

但是在我的代码模板中,类似名称的显示会以某种方式被选中,当我按下输入时,光标会转到下一个,就像预期的行为一样,请参阅下一个图像以供参考。

我得到了什么。

enter image description here

我想要什么 enter image description here

我现在这个主题有点简单,但我在网上找不到像其他主题How to place cursor in NetBeans Java file templates?那样的任何解决方案,我想在未来潜水更多的代码模板,我想要一些知识,非常感谢

我想要的只是当我按Tab键时光标移到下一行而不是选择这可能吗?

0 个答案:

没有答案
相关问题