IntelliJ IDEA出现:This file is indented with tabs instead of 4 spaces的问题的详细说明和解决

This file is indented with tabs instead of 4 spaces 中文翻译为:此文件缩进了制表符而不是4个空格

根据阿里巴巴Java开发手册,不能使用Tab字符,改成4个字符。

所以 一定要选择

IntelliJ IDEA出现:This file is indented with tabs instead of 4 spaces的问题的详细说明和解决

 

 如果重复出现该提示,则进入配置修改

IntelliJ IDEA出现:This file is indented with tabs instead of 4 spaces的问题的详细说明和解决

其中  Detect and use existing file indents for editing 的中文翻译为 检测并使用现有的文件缩进进行编辑

需要将该勾选 去掉!!!