It's possible to override the user name via eclipse.ini
, which I've done:
-Duser.name=My Name
This goes well with customised code templates. For Java these reside in Window -> Preferences -> Java -> Code Style -> Code Templates
.
Below is a custom template I use for the Files
and Types
templates:
/**
*
* @author ${user} */
The intended output of this is:
/**
*
* @author My Name */
Unfortunately eclipse insists on inserting a newline after ${user}, resulting in:
/**
*
* @author My Name
*/
Does anyone know how to prevent this newline insertion?
Sincere thanks.