MyEclipse设置编辑窗口背景色

1、编辑窗口右键单击——》Preferences——》General加号——》Editors加号——》点Text Editors字样——》右下窗口选Backgroud color,右边点掉System Default按钮,点Color右边的颜色框,选择颜色OK。我用的颜色R:191 G:220 U:192,感觉这个颜色对眼睛好

2、编辑完成代码,用MyEclipse的代码格式化后,本来不长的代码也被自动转成了多行。虽然自动换行以后在编辑器中一眼就能看到全部的代码,但是可读性却大打折扣,避免出现这种情况的办法是:

1.Java代码

打开Eclipse的Window菜单,然后Preferences->Java->Code Style->Formatter->Edit/Show(根据不同版本可用的按钮会不一样) ->Line Wrapping->Maximum line 由默认的80改成自己想要设定的长度

2.Html代码

Window->Preferences->MyEclipse->Files and Editors->Html->Html Source->Line width->加个0以后保存。

3.xml代码

Window->Preferences->MyEclipse->Files and Editors->xml->xml Source->->Line width->999

原文地址:https://www.cnblogs.com/xuewater/p/2779400.html