Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 for Visual Studio Documentation | 2025.2

# Add files to the depot

To add a file to the depot, you must perform two actions:

1. Open the file for add, which places the file in a changelist.
2. Submit the changelist, which copies the file to the depot.

To open a file for add:

1. In the Solution Explorer, browse to the file you want to add.

   If a file does not reside in the depot, its icon is marked with a blue question mark.

2. Right-click the file and select Mark for Add.

   A P4 for Visual Studio dialog opens asking you to add the files to the P4 Server depot.

3. Select the pending changelist you want to use for submitting the file.

4. Click OK.

   The file icon in Solution Explorer displays a red plus sign indicating that it is open for add.

To submit the changelist:

1. In the Solution Explorer, right-click the file and select Submit.

2. In the Submit Files dialog, enter a description of the change and click Submit.

   The new file is added to the depot.

If you add a file to a solution that is already under P4 Server control, you are prompted to put the new file under P4 Server control. If you enabled the Automatically add new files to P4 option and disabled the Prompt for changelist when checking out or adding files option under Tools > Options > Source Control, the file is marked for add and placed in a changelist without any prompting. To learn more about these options, see Set P4 for Visual Studio preferences.

To learn more, see Check in files and work with changelists.

Your search for returned results