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 welcome). Entering it somewhere into Eclipse configuration would be acceptable, too, alas I can't find the right place.
Eclipse – How to change the value of ${user} variable used in Eclipse templates
eclipse
Related Question
- Eclipse – How to change Eclipse to use spaces instead of tabs
- Eclipse – How to show line numbers in Eclipse
- Eclipse – How to auto-remove trailing whitespace in Eclipse
- Eclipse HotKey: how to switch between tabs
- Java – How to change font size in Eclipse for Java text editors
- Eclipse – How to change the Eclipse default workspace
Best Solution
It seems that your best bet is to redefine the java
user.name
variable either at your command line, or using theeclipse.ini
file in your eclipse install root directory.This seems to work fine for me:
Update:
http://morlhon.net/blog/2005/09/07/eclipse-username/ is a dead link...
Here's a new one: https://web.archive.org/web/20111225025454/http://morlhon.net:80/blog/2005/09/07/eclipse-username/