1. 程式人生 > >Intellij IDEA 老出現 This file is indented with tabs instead of 4 spaces提示

Intellij IDEA 老出現 This file is indented with tabs instead of 4 spaces提示

問題:Intellij IDEA 老出現 This file is indented with tabs instead of 4 spaces提示,嫌煩。
此提示是關於縮排用空格縮排還是tab縮排的問題,隨習慣吧。

解決方法:在settings --> Editor --> Code Style,右邊有個Indents Detection
將Detect and use existing file indents for editing的勾去掉,點選Apply儲存設定

在這裡插入圖片描述