Eclipse 实用配置整理...

来源:互联网 发布:网络大数据怎么查询 编辑:程序博客网 时间:2024/05/21 17:36

所有的配置,点击菜单Windows -> Preferences得到



1、编码改成UTF-8
General -> Workspace -> Text file encoding 改成 UTF-8即可
Web -> JSP Files -> Encoding设置成UTF-8


2、修改Eclipse3.7以上中文字体太小的问题
a)用xp sp3兼容模式运行eclipse,win7 x64不适用,好象。32位的很好用,建议用第三种
b)修改jar包中字体配置文件,自己搜索,很繁琐
c)Window -> Preferences -> General -> Appearance -> Colors and Fonts -> Basic -> Text Font -> Edit
改成 YaHei Consolas Hybrid, 这个字体要下载安装一下,程序员必备


3、去除logback.xml验证警告
XML -> XML  files -> Validation -> Validating files -> No grammar specified 改成Ignore


4、@写Annotation时提示
Java -> Editor -> Content Assistant -> Auto activation triggers for Java: 在.的后面加上一个@即可


5、去除恶心的JS警告
1、JavaScipt->Validation->Errors/Warming  
将Enable Javascript Sematic validation前面的钩子去掉  
2、打开.project 文件下面代码去掉
<buildCommand>  
            <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>  
            <arguments>  
            </arguments>  
</buildCommand> 
3、将出错的js删除,覆盖一下


6、去除拼写检查
General -> Editors -> Text Editors -> Spelling -> 勾掉Enable spell checking


7、Maven改用本地而不是内置的
Maven -> Installations 中配置


8、JDK改用本地而不是内置的
Java -> Intalled JREs


9、代码格式化和样式
Java -> Code Style -> Formatter中 Edit 一下Eclipse [build-in]的Profile
Comments里面匀上never join lines,line width设置成120
Line Wrapping里,maximum line width设置成120
将Profile改个名字保存起来
XML -> XML Files -> Editor
将Line Width设置成120
Java -> Code Style -> Code Template -> 找到Comments -> Styles,将Pattern改成
/**
 * @author 作者姓名
 * @version ${date} ${time}
 * ${tags}
 */
 Java -> Editor -> Save Actions 勾上Perform the selected actions on save所有下的项
 
10、插件推荐
proedit
easyshell
freemarker ide


subclipse
m2clipse(Kepler已经集成了)


另外,这个地方也有很多不错的参考
https://github.com/springside/springside4/wiki/Eclipse#23-springide


原创粉丝点击