eclipse、idea、notepad++设置编码为UTF-8,换行符为Unix
环境说明:
- eclipse版本:Photon Release (4.8.0)
- idea版本:2018.03.06
- notepad++版本:v7.8.4
eclipse中的设置
-
Window -> Preferences,进入参数设置页面;
-
Preferences页面左侧General->Workspaces,右侧Text file encoding选项设置为Other:UTF-8(文本文件编码),New text file line delimiter选项设置为Other:Unix(换行符格式),点击右下角Apply;
-
Preferences页面左侧General->Content Types,右侧选中Text,将底部的Default encoding选项设置为UTF-8,并点击U