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

设置文件换行符为Unix格式
file -> settings -> editor -> code style

文件换行符使用Unix格式,而不是Windows格式,原因可能是项目大部分情况都是部署在Unix/Linux上,Windows的回车换行符号是"\r\n",Unix/Linux里面没有"\r"。
本文介绍如何在IDEA中设置文本文件编码为UTF-8,并将文件换行符调整为Unix格式,以适应Unix/Linux平台的项目部署需求。
4216

被折叠的 条评论
为什么被折叠?



