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}
/**
* @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}
本文介绍如何在Eclipse中更改自动生成代码注释中的作者名称,包括修改默认设置和自定义新类创建时的注释模板。
9606

被折叠的 条评论
为什么被折叠?



