How to change the value of ${user} variable used in Eclipse templates

前端 未结 10 2176
遇见更好的自我
遇见更好的自我 2020-12-02 03:58

Instead of hardcoding the default @author template I would like Eclipse to use user\'s real name taken from account information (in Linux - but Windows solution is also welc

10条回答
  •  悲哀的现实
    2020-12-02 04:47

    edit the file /etc/eclipse.ini, so as to contain entry as;

    -Duser.name=myname

    Restart the "eclipse" and now, on creation of any new file, with wizard (c/c++/java), it will use "myname" in place of ${user}.

提交回复
热议问题