idea设置text file encoding为utf-8,文件换行符使用Unix格式

idea设置text file encoding为utf-8,文件换行符使用Unix格式。

设置utf-8格式

file -> settings -> editor -> code style -> file encoding

idea设置text file encoding为utf-8,文件换行符使用Unix格式

设置文件换行符为Unix格式

file -> settings -> editor -> code style

idea设置text file encoding为utf-8,文件换行符使用Unix格式
文件换行符使用Unix格式,而不是Windows格式,原因可能是项目大部分情况都是部署在Unix/Linux上,Windows的回车换行符号是"\r\n",Unix/Linux里面没有"\r"。

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-06-14
  • 2021-12-16
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
猜你喜欢
  • 2021-04-21
  • 2021-05-19
  • 2021-04-02
  • 2022-01-08
  • 2021-09-12
  • 2022-01-07
  • 2022-01-07
相关资源
相似解决方案