您的位置:首页 > 编程语言 > Java开发

Eclipse常用优化

2016-06-14 17:00 489 查看
Eclipse优化设置

设置字体大小

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



选择喜欢的eclipse主题
http://eclipsecolorthemes.org/(根据个人爱好,自行选择)
tab代码缩进4个空格

Window->Preferences->General->Editors->Text Editors:Displayed tab width = 4

自定义代码注释



设置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



Eclipse自动文本验证

Window->Preferences->Validation

保留manual(手动)部分,build下只留"classpath dependencyValidator"



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

Eclipse取消拼写错误验证(根据个人爱好,自行选择)

Window->Preferences->General->Editors->Text Editors->Spelling

取消勾选"Enable spell checking"



优化启动项,关闭部分功能

Window->Preferences->General->Startup andy Shutdown

看个人所需,如果不使用可以全部取消勾选

优化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




关闭动画

General > Appearance > 取消勾选“Enable Animations”

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

Java > Editor > Content Assist > 禁用“Enable Auto Activation”
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: