You can set Windows environment variables for Perforce connection settings, which makes the settings available to P4VS and other Perforce client applications (for example, P4EXP, the Helix Plugin for Windows Explorer). Set Perforce connection settings as environment variables and configure your connection preferences in Tools > Options > Source Control to default to the environment variables.
Another approach is to create a configuration file that stores your
Helix Core
environment variables. You can then point to the configuration file using
the environment variable P4CONFIG
.
P4VS
searches the current working directory and its parents for the file. If
the file exists, then
P4VS
uses the variable settings within the file. P4CONFIG
makes
it easy to switch
Helix Core
settings when switching between different solutions or projects. If you
place a configuration file in each of your client workspaces and set
P4CONFIG
to point to that file, your
Helix Core
settings change to the settings in the configuration files automatically
as you move from directories in one workspace to another.
For more information about how to use P4CONFIG
with
P4VS, see
Setting Helix Core environment variables using P4CONFIG.
For more information about Helix Core environment variables, see the P4 Command Reference and Setting P4VS preferences.