1、配置默认编码
修改Eclipse中文本文件的默认编码:windows->Preferences->general->Workspace->Text file encoding设置为UTF-8
修改JAVA源文件的默认编码:windows->Preferences->general->Content Types->右侧Context Types树,点开Text,选择Java Source File,在下面的Default encoding输入框中输入UTF-8,点Update
Window-->Preferences-->Java-->Code Style-->Code Templates
找到Types 然后双击填入以下几个东西即可,然后在新建类的时候在Generate comments前面√即可以
/**
* @author 作者的名字 E-mail: 写自己的Email
* @version 创建时间:${date} ${time}
/
1>Java代码
打开Eclipse的Window菜单,然后Preferences->Java->Code Style->Formatter->Edit/Show(根据不同版本可用的按钮会不一样) ->Line Wrapping->Maximum line width:由80改成800就行了。
2>Html代码
Window->Preferences->MyEclipse->Files and Editors->Html->Html Source->Line width->加个0以后保存。