Configure idea.properties with username variable

Hello,

 

I want to alter

idea.config.path=; idea.system.path=; idea.plugins.path= and idea.log.path= so that they contain the username like idea.system.path=D:/PyCharm/${USERNAME}/.PyCharmCE/system

However, this will create literally a directory with ${USERNAME}. When I echo %USERNAME% in Windows cmd I get my correct username.

What do I have to alter, so that Pycharm creates a directory with the username of the user that starts pycharm?

I'm on Windows 2012 ServerR2

1 comment
Comment actions Permalink

Check the comments in idea.properties file:

"Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value"

You need using java System properties (https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html) here. So the right value would be:

idea.system.path=D:/PyCharm/${user.name}/.PyCharmCE/system

0

Please sign in to leave a comment.