1.Java代码
打开Eclipse的Window菜单,然后Preferences->Java->Code Style->Formatter->Edit/Show(根据不同版本可用的按钮会不一样) ->Line Wrapping->Maximum line width:由默认的80改成自己想要设定的长度,....
也许你会发现,保存不了,郁闷,别急!!!创建一个新的Profile:
Preferences->Java->Code Style->Formatter->new ->Line Wrapping->Maximum line width:把80改200保存就可以了。
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
打开Eclipse的Window菜单,然后Preferences->Java->Code Style->Formatter->Edit/Show(根据不同版本可用的按钮会不一样) ->Line Wrapping->Maximum line width:由默认的80改成自己想要设定的长度,....
也许你会发现,保存不了,郁闷,别急!!!创建一个新的Profile:
Preferences->Java->Code Style->Formatter->new ->Line Wrapping->Maximum line width:把80改200保存就可以了。
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