一、注释模板
Window->preferences->java->code style ->code Templates -> comments
Types:
/**
*
*
* @author Administrator
* Create Date: ${date}
* @version 1.0.0
*
*/
Fileds:
/**
* The value is used for .
*/
Constructors:
/**
*
*
* @param
*/
Methods:
/**
*
* @param
* @throws
* @return
*/
二、Eclipse中设置在创建新类时自动生成注释
windows-->preference -->Java-->Code Style-->Code Templates
code-->new Java files
编辑它
${filecomment}
${package_declaration}
/**
*
*
* @author Administrator
* Create Date: ${date}
* @version 1.0.0
*
*/
${typecomment}
${type_declaration}
三、Eclipse格式化:
1.Java代码
打开Eclipse的Window菜单,然后Preferences->Java->Code Style->Formatter->Edit/Show(根据不同版本可用的按钮会不一样) ->Line Wrapping->Maximum line width:由80改成200就行了。
注:这里的数字就是多少列
2.Html代码
Window->Preferences->MyEclipse->Files and Editors->Html->Html Source->Line width->修改为200以后保存。
四、Eclipse修改主题:
http://eclipsecolorthemes.org/
保存EPF文件到桌面,然后打开Eclipse,选择File-->Import,选择刚刚下载的EPF文件,就可以看到效果了。更多针对单个颜色的修改,可以在Window --> Preference中修改
参考:http://blog.csdn.net/withiter/article/details/8052897