Netbeans 大括号格式化
Netbeans curly braces formatting
当我在 netbeans 中声明一个新方法时,我做了如下操作:
$cursor is used to mark the position of the cursor
public void inc(){$cursor}
然后我回车,输出如下:
public void inc(){
$cursor}
我想要的是:
public void inc(){
$cursor
}
如何在 netbeans 中实现这个结果?
我这样做:
public void inc(){$cursor
然后按回车键。
简而言之:您不必输入第二个花括号,它是为您生成的,还有一个额外的换行符。
当我在 netbeans 中声明一个新方法时,我做了如下操作:
$cursor is used to mark the position of the cursor
public void inc(){$cursor}
然后我回车,输出如下:
public void inc(){
$cursor}
我想要的是:
public void inc(){
$cursor
}
如何在 netbeans 中实现这个结果?
我这样做:
public void inc(){$cursor
然后按回车键。
简而言之:您不必输入第二个花括号,它是为您生成的,还有一个额外的换行符。