一、步骤

路径A=windows-->preference-->Java-->Code Style-->Code Templates-->Comments

自动添加注释一般可用在:类上、方法上

 

1.类上

          每当创建新类时,在类名上自动添加作者、描述、时间的注释:

路径A-->Types-->Edit ,再添加一下代码

/**@desc  : 
 * 
 * @author: ${user}
 * @date  : ${date} ${time}
 */

 

2.方法上

每当创建新方法时,在方法名上自动添加作者、描述、时间的注释:

路径A-->Methods-->Edit  ,再添加以下代码。

/**@desc :
 *  
 * ${tags} ${return_type} 
 */

 

二、使用方法

在类上或方法上输入  /**  然后回车即可

 

三、参考文章

1. http://blog.csdn.net/changqing5818/article/details/51996302

 

相关文章:

  • 2021-09-30
  • 2022-01-05
  • 2021-05-30
  • 2022-01-05
  • 2021-09-08
  • 2021-10-29
  • 2021-09-21
猜你喜欢
  • 2021-07-13
  • 2021-10-22
  • 2021-11-13
  • 2021-04-24
相关资源
相似解决方案