如何Eclipse改变模板中${user}变量,How to change the variable ${user} used in the eclipse templates.

来源:互联网 发布:动软代码生成器 mysql 编辑:程序博客网 时间:2024/06/11 01:39

在Eclipse中使用类的自动注释时,产生的注释老是是@author Administrator 。改变时都是在Eclipse中的Template的@author 编写者可是如何修改变量${user}来改变编写者呢?

解决:在Eclipse安装目录下eclipse.ini文件中加入启动参数 -vmargs -Duser.name="whateveryouwant"

例如:eclipse.ini文件为:

  

 

参考原文: http://dev.eclipse.org/mhonarc/lists/platform-dev/msg00635.html

原创粉丝点击