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

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

    Open Eclipse, navigate to Window -> Preferences -> Java -> Code Style -> Code Templates -> Comments -> Types and then press the 'Edit' button. There you can change your name in the generated comment from @Author ${user} to @Author Rajish.

提交回复
热议问题