大家好
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) };
造成閱讀上的不方便,請問有什麼好方法嗎?謝謝