Eclipse 常用配置和插件

常用插件:

  • Subversion,SVN客户端插件,该插件由Eclipse官方支持,与第三方Subclipse不分伯仲。可从Eclipse Marketplace中可直接下载安装

  • Properties Editor,属性文件编辑器插件,可从Eclipse Marketplace中可直接下载安装

  • StartExplorer,Windows 中资源目录管理插件,非常好用且方便,可快速进入目录或者CMD,可从Eclipse Marketplace中可直接下载安装

  • Eclipse Code Recommenders,代码智能提示插件,链接地址:http://www.eclipse.org/recommenders/,可从Eclipse Marketplace中可直接下载安装

常用设置:

  • 去掉不必要的启动项目

    Window > Preferences > General > Startup and Shutdown

  • 修改eclipse.ini文件

    -Xms256m

    -Xmx768m

    -XX:PermSize=128m

    -XX:MaxPermSize=256m

    -XX:ReservedCodeCacheSize=64m

  • 关闭不必要的校验

    Windows > Perferences > Validation > 将Build下的勾选去掉,只留下:Classpath Dependency Validator,其它都取消。(在需要验证某个文件的时候,我们可以单独去验证它,方法是:在需要验证的文件上右击 > Validation)

  • 去掉拼写检查

    Window > Perferences > General > Editors > Text Editors > Spelling > 去掉Enable spell checking复选框的勾选。

  • 更改默认的JRE

    Window > Perferences > Java > Installed JREs > 单击[Add...]按钮添加自己安装的JDK(注意不是普通的JRE)

  • 更改字符编码格式

    Window->Perferences->General->Workspace,其中的Text file encoding修改为:UTF-8

  • 设置眼睛保护色

    Window->Perferences->General->Editors->Text Editors->Background Color,RGB:204,232,207

  • 调整Java和XML的宽度到:180
    Java->Code Style->Formatter, 基于Eclipse-Buildin new 一个出来,设置Line Wrapping 和 Comments里的Line Width。同时修改XML->XML Files->Editor。

  • 设置JavaDoc格式

    依然是Java->Code Style->Formatter,在new出来的profile中,Comments里, 勾选Never Join lines,取消 New Line after @param tags

  • 设置Package Explorer展现

    View Menu->Package presentation->Hierarchical.

  • 设置Console

    取消Limit Console Output.

  • 设置代码自动提示,Window -> Perferences -> Java -> Editor -> Content Assist-> Auto Activation triggers for java中的值修改为:abcdefghijklmnopqrstuvwxyz(,

猜你喜欢

转载自brofe.iteye.com/blog/2096809