当前位置: 代码迷 >> 综合 >> eclipse创建新类的模板
  详细解决方案

eclipse创建新类的模板

热度:98   发布时间:2023-09-20 11:53:48.0

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

windows–>preference
Java–>Code Style–>Code Templates
code–>new Java files

${filecomment}
${package_declaration}

/**

*类说明:

*@author   username

*date ${date}${time}

*version

*since [版本号,默认v1.0.0]

*/

${typecomment}
${type_declaration}

保存即可!

  相关解决方案