eclipse自定义类注释和方法注释

来源:互联网 发布:java编程小游戏 编辑:程序博客网 时间:2024/05/22 17:20

参考http://msq.javaeye.com/blog/63019

 

Eclipse中设置在创建新类时自动生成注释

windows-->preference
Java-->Code Style-->Code Templates
code-->new Java files
编辑它 (点击右边的 Edit)

${filecomment}
${package_declaration}

/**
  *
  * @version 1.0
  * @author wyyl1

  * @date ${date}
  */
${typecomment}
${type_declaration}

 

Eclipse自动生成方法注释

windows-->preference
Java-->Code Style-->Code Templates-->Comments-->Methods

原创粉丝点击