Eclipse常用优化

来源:互联网 发布:左归丸与知柏地黄丸 编辑:程序博客网 时间:2024/05/29 03:18

Eclipse优化设置

  1. 设置字体大小
    Window-Preferences->General->Appearance->Colors and Fonts->Basic->Text Font (Consolas/粗体/小三)(根据个人爱好,自行选择)


  2. 选择喜欢的eclipse主题
    http://eclipsecolorthemes.org/(根据个人爱好,自行选择)

  3. tab代码缩进4个空格
    Window->Preferences->General->Editors->Text Editors:Displayed tab width = 4

  4. 自定义代码注释


  5. 设置JSP编码格式
    Window->Preferences->Web->Jsp Files->Encoding->UTF-8

    设置其他文本编码格式
    Window->Preferences->General->Workspace->Text file encoding->Other->UTF-8

    设置另外文本编码格式
    Window->Preferences->General->Content Types->default encoding->UTF-8,我将Text和Word Document设为UTF-8



  6. Eclipse自动文本验证
    Window->Preferences->Validation
    保留manual(手动)部分,build下只留"classpath dependencyValidator"

    手动验证:选中文件右击->Validation

  7. Eclipse取消拼写错误验证(根据个人爱好,自行选择)
    Window->Preferences->General->Editors->Text Editors->Spelling
    取消勾选"Enable spell checking"


  8. 优化启动项,关闭部分功能
    Window->Preferences->General->Startup andy Shutdown
    看个人所需,如果不使用可以全部取消勾选

  9. 优化eclipse窗口、菜单项
    移除所有用不到或不想用的内容(尽量使用快捷键),菜单栏也是如此(你用过几次菜单栏的打印按钮?),我个人习惯勾选如下

    Eclipse JaveEE模式,Window->Perspactive->Customize Perspactive->Tool Bar Visibility


    Window->Perspactive->Customize Perspactive->Shortcuts
    勾选General内容如下:

    勾选Java内容如下:

    勾选Javascript内容如下:

    勾选Web内容如下:

    勾选XML如下:

    最后,File->New效果如图:



    保存自定义风格 Window->Perspactive->Save Perspactive As
    切换到Debug模式,Window->Perspactive->Customize Perspactive->Tool Bar Visibility


    最后切记保存自定义风格 Window->Perspactive->Save Perspactive As
    我的最终elipse清爽风格
    Alex-JaveEE

    Alex-DeBug


  10. 关闭动画
    General > Appearance > 取消勾选“Enable Animations”

  11. 使用默认的主题。其他主题可能会降低运行速度(根据个人爱好,自行选择)

  12. Java > Editor > Content Assist > 禁用“Enable Auto Activation”


0 0
原创粉丝点击