Android Studio “This file is indented with tabs instead of 4 spaces”

后端 未结 4 821
灰色年华
灰色年华 2020-12-09 02:03

I keep getting a message popping up in Android Studio whenever I edit a file. It says, "This file is indented with tabs instead of 4 spaces." I can click "OK&

4条回答
  •  萌比男神i
    2020-12-09 02:27

    Turn on "Use tab character" (File -> Settings -> Editor -> Code Style -> JAVA).

    If Not working do this also, Turn on "show whitespaces" (Editor -> General -> Appearance).

提交回复
热议问题