Stupid user id and ${USER}

Our user ids have no relation to our real names here. Is there a way for me to to change ${USER} in one place and have all the file templates use a real name rather than the effectively random string that we use to login?

I know that I could go through ALL the templates and change every one, but was hoping for something easier.

Thanks

1 comment
Comment actions Permalink

IDEA reads this from the JVM's user.name system property. So you would need to change it on the JVM level. In the directory ${idea-install-dir}/bin, edit the file idea.exe.vmoptions (or idea64.exe.vmoptions if running 64-bit version). Add a line such as:

-Duser.name=Charlie Brown

Then restart IDEA.

<edit>
p.s. You will need to double check that change when installing a new version of IntelliJ IDEA.

0

Please sign in to leave a comment.