记录下Eclipse的配置,以免下次更新Eclipse后烦恼
一、要下载的插件
- Babel–语言包,对于Eclipse Java EE IDE可以选择datatools、eclipse、mylyn、webtools
- Eclipse Color Theme
- Subversion–SVN管理工具
- Android Developer Tools–Android开发
- WindowBuilder Pro–Java GUI开发
- Spring Tool Suite–Spring开发
- JBoss Tools–hibernate开发
- properties editor–编辑properties文件,避免编码问题,推荐使用http://propedit.osdn.jp/index_en.html
二、字体设置
- 基准位置General–>Appearance–>Colors and Fonts
- Basic–>Text Font–>Consolas–>常规–>小五
- Java–>Java Editor Text Font–>Consolas–>常规–>14
- Structured Text Editors–>Structured Text Editor Text Font–>Consolas–>常规–>14
三、编码设置
- General–>Workspace–>Text file encoding–>UTF-8
- Web–>JSP Files–>Encoding–>UTF-8
- Web–>JSP Files–>Editor–>Templates–>使用下面的模板
<code class="hljs xml has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: 'Source Code Pro', monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;"><span class="vbscript" style="box-sizing: border-box;"><%@ page language=<span class="hljs-string" style="color: rgb(0, 136, 0); box-sizing: border-box;">"java"</span> contentType=<span class="hljs-string" style="color: rgb(0, 136, 0); box-sizing: border-box;">"text/html; charset=${encoding}"</span>
pageEncoding=<span class="hljs-string" style="color: rgb(0, 136, 0); box-sizing: border-box;">"${encoding}"</span>%></span>
<span class="hljs-doctype" style="color: rgb(102, 0, 102); box-sizing: border-box;"><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"></span>
<span class="hljs-tag" style="color: rgb(0, 102, 102); box-sizing: border-box;"><<span class="hljs-title" style="box-sizing: border-box; color: rgb(0, 0, 136);">html</span>></span>
<span class="hljs-tag" style="color: rgb(0, 102, 102); box-sizing: border-box;"><<span class="hljs-title" style="box-sizing: border-box; color: rgb(0, 0, 136);">head</span>></span>
<span class="hljs-tag" style="color: rgb(0, 102, 102); box-sizing: border-box;"><<span class="hljs-title" style="box-sizing: border-box; color: rgb(0, 0, 136);">meta</span> <span class="hljs-attribute" style="box-sizing: border-box; color: rgb(102, 0, 102);">http-equiv</span>=<span class="hljs-value" style="box-sizing: border-box; color: rgb(0, 136, 0);">"Content-Type"</span> <span class="hljs-attribute" style="box-sizing: border-box; color: rgb(102, 0, 102);">content</span>=<span class="hljs-value" style="box-sizing: border-box; color: rgb(0, 136, 0);">"text/html; charset=${encoding}"</span>></span>
<span class="hljs-tag" style="color: rgb(0, 102, 102); box-sizing: border-box;"><<span class="hljs-title" style="box-sizing: border-box; color: rgb(0, 0, 136);">title</span>></span>Insert title here<span class="hljs-tag" style="color: rgb(0, 102, 102); box-sizing: border-box;"></<span class="hljs-title" style="box-sizing: border-box; color: rgb(0, 0, 136);">title</span>></span>
<span class="hljs-tag" style="color: rgb(0, 102, 102); box-sizing: border-box;"></<span class="hljs-title" style="box-sizing: border-box; color: rgb(0, 0, 136);">head</span>></span>
<span class="hljs-tag" style="color: rgb(0, 102, 102); box-sizing: border-box;"><<span class="hljs-title" style="box-sizing: border-box; color: rgb(0, 0, 136);">body</span>></span>
<span class="hljs-tag" style="color: rgb(0, 102, 102); box-sizing: border-box;"></<span class="hljs-title" style="box-sizing: border-box; color: rgb(0, 0, 136);">body</span>></span>
<span class="hljs-tag" style="color: rgb(0, 102, 102); box-sizing: border-box;"></<span class="hljs-title" style="box-sizing: border-box; color: rgb(0, 0, 136);">html</span>></span></code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221, 221, 221); list-style: none; text-align: right; background-color: rgb(238, 238, 238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li><li style="box-sizing: border-box; padding: 0px 5px;">4</li><li style="box-sizing: border-box; padding: 0px 5px;">5</li><li style="box-sizing: border-box; padding: 0px 5px;">6</li><li style="box-sizing: border-box; padding: 0px 5px;">7</li><li style="box-sizing: border-box; padding: 0px 5px;">8</li><li style="box-sizing: border-box; padding: 0px 5px;">9</li><li style="box-sizing: border-box; padding: 0px 5px;">10</li><li style="box-sizing: border-box; padding: 0px 5px;">11</li><li style="box-sizing: border-box; padding: 0px 5px;">12</li></ul>
四、Team配置
- Team–>Ignored Resources–>1、.settings
2、.svn
3、*/build/
4、.classpath
5、.project
2、Team–Git–default repository folder
3、Team–SVN–SVN接口–开源中国需要使用SVNKit,其他情形未知
4、Team–在比较编辑器中显示文件作者
–在资源的文本标签中显示所有同步信息
三、设置
1、General–>Startup and Shutdown–>移除所有在启动时加载的插件(Plug-ins activated on startup)
2、General–>Appearance–>Theme–>选择Classic主题
3、General–>Editors–>Text Editors–>Spelling–>关闭拼写检查
4、General–>Web Browser–>Use external web browser
5、JAVA–>Editor–>Content Assist(内容辅助)–>Auto activation triggers for Java(Java的自动激活触发器)
6、Install/Update–>Automatic Update–>取消勾选Automatically find new updates and notify me
6、Windwos–>Perspective–>Customize Perspective–>取消勾选不用的按钮