ITeye博客

修改eclipse自动生成的comments

east_java · 2008-08-29 09:47 · 网站开发 · Markdown

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

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

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

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

/** * @author xingsheng.zhu@gmail.com * */

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

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

${filecomment} ${package_declaration} /**

  • @author xingsheng.zhu@gmail.com
  • @creation date ${date} ${time}

*/

${typecomment} ${type_declaration}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。