myeln

1.打开设置模板的窗口:Window->Preference->Java->Code Style->Code Template展开Comments,最常用的就是类和方法的注释,我就列出了这两个的设置方法 

 1) 选择Types,这个是给类设置自动注释模板,我设置的模板如下: 

/** 
 * @FileName ${file_name}
 * @version:1.0
 * @Description: 
 * @author: ${user}
 * @date: ${date} ${time}
 */

2.选择Methods这个是给方法设置自动注释模板,以下是我设置的方法模板: 

/**
 * @Description:(功能描述)
 * ${tags}
 */

 

 2.使用模板

  1)type 在新建类和/**+回车自动补全

 

 2)Methods在/**+回车自动补全

 

分类:

技术点:

相关文章:

  • 2021-04-07
  • 2022-01-27
  • 2021-12-24
  • 2021-12-05
  • 2021-12-19
  • 2021-10-25
  • 2022-01-05
猜你喜欢
  • 2021-08-11
  • 2021-08-19
  • 2021-07-07
  • 2021-12-09
  • 2021-12-15
  • 2021-10-22
相关资源
相似解决方案