IDEA File | Settings | Editor | Code Style git LF will be replaced by CRLF the next time Git touches it # win也使用使用默认的LF作为换行符 # ture 的话会自动转换 git config --global core.autocrlf false