大家好
Eclipse的自动缩排很方便,打完一段也会顺手按一下Ctrl+Shift+F整理格式
但是碰到阵列时就整个乱掉了,比如:
CashCard cards[]={
new CashCard("A001",500,0),
new CashCard("A002",300,0),
new CashCard("A003",1000,0),
new CashCard("A004",2000,0),
new CashCard("A005",3000,0)
};
按下缩排之后会变成:
CashCard cards[] = { new CashCard("A001", 500, 0),
new CashCard("A002", 300, 0), new CashCard("A003", 1000, 0),
new CashCard("A004", 2000, 0), new CashCard("A005", 3000, 0) };
造成阅读上的不方便,请问有什么好方法吗?谢谢