首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

JAVA资料头模版的设置(Eclipse)

2012-12-26 
JAVA文件头模版的设置(Eclipse)windows-preferences-java-Code Style-Code Templates-comments-Type

JAVA文件头模版的设置(Eclipse)
windows->preferences->java->Code Style->Code Templates->comments->Type->edit

输入设置模板:

/**     
* ${file_name} Create on ${date}    
*     
* Copyright (c) ${date} by wilzhang www.conngame.com  
*     
* @author <a href="zwllxs@163.com">wilzhang</a>    
* @version 1.0
*    
*/

注意选择自动添加注释

养成一个规范的习惯是最好的。


选菜单
windows-->preference
Java-->Code Style-->Code Templates
code-->new Java files

选中点编辑

${filecomment}
${package_declaration}
/**
* @author 作者姓名  E-mail: email地址
* @version 创建时间:${date} ${time}
* 类说明
*/
${typecomment}
${type_declaration}




热点排行