[size=large]Eclipse中设置在创建新类时自动生成注释
Eclipse自动生成的comments中的author名字默认是当前系统的用户名,例如我的系统用户名是user
/**
* @author user
*
*/
我总是要改为我自己的姓名
window->perferences->JAVA->code style->code templates->Types
看到默认是@author $(user)
现在来修改它,然而是不能直接在下面显示的文本区修改的!需要点击上面的“Edit”,这样就会弹出对话框,修改里面的内容
/**
* @author xingsheng.zhu@gmail.com
*
*/
windows-->preference
Java-->Code Style-->Code Templates
code-->new Java files
编辑它
${filecomment}
${package_declaration}
/**
* @author 作者 E-mail:
* @version 创建时间:${date} ${time}
* 类说明
*/
${typecomment}
${type_declaration}
新建类时选中Generate comments
[/size]
Eclipse自动生成的comments中的author名字默认是当前系统的用户名,例如我的系统用户名是user
/**
* @author user
*
*/
我总是要改为我自己的姓名
window->perferences->JAVA->code style->code templates->Types
看到默认是@author $(user)
现在来修改它,然而是不能直接在下面显示的文本区修改的!需要点击上面的“Edit”,这样就会弹出对话框,修改里面的内容
/**
* @author xingsheng.zhu@gmail.com
*
*/
windows-->preference
Java-->Code Style-->Code Templates
code-->new Java files
编辑它
${filecomment}
${package_declaration}
/**
* @author 作者 E-mail:
* @version 创建时间:${date} ${time}
* 类说明
*/
${typecomment}
${type_declaration}
新建类时选中Generate comments
[/size]