How to tell IntelliJ to pick P4USER, P4PORT etc from environment variables (if set).

As of now, user has to specify P4USER, P4PORT as part of .p4config ($P4CONFIG). Is there a way to tell IntelliJ to pick these values from environment variables (if set).

1 comment
Comment actions Permalink

Hello chandra,

actually, IntelliJ IDEA uses the following algorithm:

1) locates .p4config files and parses connection related variables from there
2) runs "p4 set" and uses returned values for variables missing in .p4config file

You can check what variables IDEA picked by pressing "Test Connection" button


Please sign in to leave a comment.