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

参考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
* @authorwyyl1

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

Eclipse自动生成方法注释

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

你可能感兴趣的:(eclipse)