`
xumingrencai
  • 浏览: 1184403 次
文章分类
社区版块
存档分类
最新评论

修改eclipse自动生成的comments

 
阅读更多

Eclipse自动生成的comments中的author名字

Eclipse自动生成的comments中的author名字默认是当前系统的用户名,例如我的系统用户名是user
/**
* @author user
*
*/

我总是要改为我自己的姓名
window->perferences->JAVA->code style->code templates->Types

看到默认是@author $(user)
现在来修改它,然而是不能直接在下面显示的文本区修改的!需要点击上面的“Edit”,这样就会弹出对话框,修改里面的内容

/**
* @author aa@gmail.com
*
*/


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


windows-->preference
Java-->Code Style-->Code Templates
code-->new Java files
编辑它

${filecomment}
${package_declaration}
/**
* @author aaa@gmail.com
* @creation date ${date} ${time}
*
*/

${typecomment}
${type_declaration}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics