首页 > 技术文章 > EclipseIDE设置

silentdoer 2017-07-08 09:25 原文

对于新安装的Eclipse而言要设置:

1、Window-Preferences-General-Workspace,然后分别设置Text file encoding为UTF-8和设置New text file line delimiter为Unix。

2、Window-Preferences-General-Editors-Text Editors-Spelling的Encoding为UTF-8 。

3、Window-Preferences-General-Appearance-Colors and Fonts-Basic-Text Font的字体为Verdana大小为11(五号)。

4、Window-Preferences-Java-Compiler-Errors/Warnings找到如图设置成Error

5、可对如图中设置变量、类、接口之类的颜色和其它:

6、Window-Preferences-JSON-JSON Files的Encoding为UTF-8 。

7、Window-Preferences-XML-XML Files的Encoding为UTF-8 。

8、Window-Preferences-Web下的所有均设置为UTF-8(主要是JSP Files)。

9、Window-Preferences-General-Content Types-Text的Java Properties File和Java Source File和Java Script File和JSP和JSON这5个的Default Encoding写成UTF-8然后点击Update后点击Apply and Close。

10、如图在圈后面加一个@(原来只有一个.号):

 

推荐阅读