myeclipse(eclipse)IDE配置

 

1.更换JDK8

2.更换低版本的eclipse试试

其他方法暂时没想到

一、设置编码与字体

  工作空间编码设置:window->perferences->General->wordspace->右边面板即有 text file encoding

  项目编码设置:右键->properties->右边面板即有 text file encoding

  JSP编码设置:Window -> Preferences -> MyEclipse -> Files and Editors -> JSP->右边面板encoding

       eclipse中的配置:Window -> Preferences ->web->JSP File->右边面板encoding

  设置字体:

    window->perferences->General->Appearance->Colors and font

二、设置JSP默认打开方式

  windows -> preferences -> General -> Editors -> file Associations

  面板上 file types 选择 .jsp ,下面设置 Myeclipse JSP Editor 设置为 default 即可

三、去掉拼写检查

  Window –> perferences –> General –> Editors-> Text Editors -> Spelling->勾选 enable spell checking

四、更改快捷键(如代码提示快捷键)

  windows–>perferences–>general–>Keys 

  找到content Assist修改即可

五、更改注释格式

  Window->Preference->Java->Code Style->Code Template

  Comments-Types 类注释  Fileds 属性注释 其它类同

六、设置背景颜色(如护眼色)

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

  Background colors

  护眼色 R:  204  G: 232 B: 207

2017.4.15日补充:

七、项目分类管理working set

  建立管理项目的working set -> 直接file new就可以

  添加项目后在 package Explorer里面后面的倒小三角->top level Elements->working set进行视图显示

  top level Elements下的 config Working set进行工作组配置修改等

八、WEB项目视图

  有时候项目多出 JAX-WS Web service 等多余目录可以通过:

      在Project Explorer的右上角点击向下的三角形箭头,在弹出的菜单中选择Customize View(自定义视图),

      之后点击Content选项卡,按照需要的视图设置

  后者直接切换为Java视图,而不是j2ee视图:

      别理他,这是j2ee模式的固定显示。选windows/open perspetive/java ,切换的java模式就对了。

 九、定制eclipse的菜单视图

  Window –> Customize Perspective:

 十、设置一个tab为四个空格

   window->preference-> General->Editors->Text Editors,选中右侧的 insert space for tabs;如下图所示,第一步设置完成

  

  window->preference-,依次选择 Java->code style ->formatter,点击右侧的editor,选则左侧 tab policy的值为spaces only,确定,应用保存即可,如下图所示:

  

  

  若此步出现灰色无法正常Apply,则退回点击Edit处,new 一个自己的样式(后面就apply这个自定义样式)

 十一、设置换行符

  参见:http://blog.csdn.net/liushuijinger/article/details/45390417

原文地址:https://www.cnblogs.com/jiangbei/p/6685719.html