修改eclipse自动生成的comments
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}