是否可以在eclipse中配置格式化程序或清理以在块语句之前或之后插入空白链接?
而不是:
public class Main {
public static void main(String[] args) {
if (obj == null) {
throw new IllegalArgumentException();
}
if (ids.length > 0) {
System.out.println(ids[0]);
} else {
return;
}
try {
}
catch( Exception e) {
}
finally {
}
for( int i = 0; i < 10; i++) {
}
switch( p) {
case 0:
fField.set( 0);
break;
case 1: {
break;
}
default:
fField.reset();
}
}
}
我想要这个:
public class Main {
public static void main(String[] args) {
if (obj == null) {
throw new IllegalArgumentException();
}
if (ids.length > 0) {
System.out.println(ids[0]);
} else {
return;
}
try {
}
catch( Exception e) {
}
finally {
}
for( int i = 0; i < 10; i++) {
}
switch( p) {
case 0:
fField.set( 0);
break;
case 1: {
break;
}
default:
fField.reset();
}
}
}