java 导入 注释末班_Eclipse添加注释模板

一、注释模板

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值