Eclipse has ${user} variable which can be used in code template. Normally, it is the name of the operating system user. There are ways to change this to any string you want:
1. From command line
eclipse -vmargs -Duser.name="Aric Wang"
2. From Eclipse Configuration File
Edit 'eclipse.ini' in the installation folder. After line '-vmargs', add a new line like
-Duser.name=Aric Wang
Restart eclipse.
No comments:
Post a Comment