Windows->Preference->Java->Code Style->Code Templates->Code->New Java file->Edit

 eclipse 新建 java 文件时自动生成注释

 

原来的模板:

${filecomment}
${package_declaration}


${typecomment}
${type_declaration}

 

修改后:

${filecomment}
${package_declaration}

/** 
* @author YJJ
* @version ${date} ${time}
*/ 
${typecomment}
${type_declaration}

 

添加了作者,文件生成时间

相关文章:

  • 2022-02-15
  • 2022-01-30
  • 2021-07-03
  • 2021-11-23
  • 2021-06-16
  • 2021-06-18
  • 2021-06-01
猜你喜欢
  • 2021-07-05
  • 2021-07-26
  • 2021-07-04
  • 2021-06-15
  • 2021-07-21
  • 2022-12-23
  • 2022-01-05
相关资源
相似解决方案