美文网首页
Eclipse创建文件如何自动添加作者、时间等相关注释

Eclipse创建文件如何自动添加作者、时间等相关注释

作者: 淚水無痕 | 来源:发表于2019-03-13 18:55 被阅读0次

1、在eclipse功能菜单区选择window,选择preference

2、左边:java>code style>code templates ,右边:code>new java files

输入事例:

${filecomment}

${package_declaration}

/**

* 项目名称:${project_name}

* 文件名称:${file_name}

* 创建日期:${date} ${time} 

* 创建人员:YangXL

* 当前版本:1.0

* 开发环境:JDK 1.8 Eclipse

* 版权信息:Copyright (c) ${year}, 214491258@qq.com All Rights Reserved.

* 技术支持:

* 功能描述:

*/

${typecomment}

${type_declaration}

相关文章

网友评论

      本文标题:Eclipse创建文件如何自动添加作者、时间等相关注释

      本文链接:https://www.haomeiwen.com/subject/ggbtmqtx.html