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

前端 未结 10 2167
遇见更好的自我
遇见更好的自我 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:34

    Window -> Preferences -> Java -> Code Style -> Code Templates -> Comments -> Types Chnage the tage infront ${user} to your name.

    Before

    /**
     * @author ${user}
     *
     * ${tags}
     */
    

    After

    /**
     * @author Waqas Ahmed
     *
     * ${tags}
     */
    

提交回复
热议问题