idea常用设置—阿里巴巴 Java 开发手册 1.编码设置 IDE 的 text file encoding 设置为 UTF-8; IDE 中文件的换行符使用 Unix 格式,不要使用 windows 格式。 2.设置Tab键为四个空格 缩进采用 4 个空格,禁止使用 tab 字符。