Idea中默认用4个半角空格进行缩进,习惯用制表符,修改如下:
File > Settings > Editor > Code Style > Java > Tabs and Indents > Use tab character