Eclipse修改默认的author

什么东西都可能会被忘掉,我这种记性不好的就更容易忘了。换了电脑后eclipse中的@author变了,于是找了下修改@author的方法:


1. 在eclipse.ini中添加
-vmargs
-Duser.name={author name}
记得一定要在-vmargs之后,否则无效。

2. 设置eclipse参数
windows-->preference --> Java --> Code Style --> Code Templates --> comments --> types
原来的内容是:
/**
 *
 * @author ${user}
 * @date ${date}
 *
 */

添加自定义内容,添加之后内容如下:
/**
* @author: zhou
* @email: zhou@sohu.com
* @date:${date} ${time}
*/

posted @ 2012-12-10 17:17  bluepoint2009  阅读(221)  评论(0)    收藏  举报