格式化代碼 快捷鍵 Ctrl + Shift + F 設置代碼格式 Java:Preferences - Java - Code Style - Formatter,一般默認的就可以 XML:Preferences - XML - XML Files - Editor,勾選Split multiple attributes on a new line,兩個空格縮進的風格選擇Indent using spaces 2