1.字体设置
Window -> Preferences -> General -> Appearance -> Colors and Fonts -> Basic -> 选中最后一项 Text Font -> Edit
2.工程编码设置
Window -> Preferences -> General -> Workspace -> 右下角 Text file encoding 设置为UTF-8。
或者: Window -> Preferences -> 左上角搜索 enc ,将搜索的几项编码都设置为UTF-8。如下图:
3.设置properties文件编码
Window -> Preferences -> General -> ContentTypes -> Text -> Java Properties File,设置Default encoding,把下面的ISO-8859-1改为UTF-8或者GBK(推荐UTF-8),然后update.如下图:
4.自动拼写设置
Window -> Preferences -> Java -> Editor -> Content Assist ,在下方Auto activation triggers for Java : 添加 .abcdefghijklmnopqrstuvwxyz 如下图: