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

P4 for Visual Studio Documentation | 2025.1

# Create workspaces

To create a new workspace in P4 for Visual Studio:

1. Open the Open Connection dialog.

   To learn more, see Connect to a P4 Server.

2. Click the New​ button next to the Workspace field to open the New Workspace dialog.
3. Enter a workspace name and click OK.

4. In the Workspace dialog, view or enter the following settings:

   Setting | Description
   --- | ---
   `Workspace` | Workspace name. Defaults from the New Workspace dialog.
   `Owner` | The user who created the specification. Defaults to you when you create a new workspace.
   `Host` | (optional) The computer where the workspace resides. To enable the workspace to be used from any machine, leave this field blank.
   `Submit options` | Configures what happens when users submit files.
   `Line endings` | The line-end convention used for storing text files on the workspace computer: Local: Uses the workspace platform default Unix: `LF` Mac: `CR` Windows: `CRLF` Share: Line endings are `LF`. Any `CR` prior to a line ending is removed for storage or syncing (for disks shared between UNIX and Windows)
   `Description` | Your own explanation of the purpose of the workspace, or any related information you want to specify.
   `Root` | Workspace root directory where you want local copies of depot files stored.
   `Alt Roots` | For workspace specifications used from hosts on different platforms, a list of workspace roots in host-platform-specific syntax.
   `Options` | `allwrite`: All files in the workspace are writable (can be modified). `clobber`: Syncing files overwrites writable files on the workspace. `compress`: Compresses data sent between the workspace and P4 Server. `locked`: Only the owner of the workspace can use, change, or delete the workspace specification. `modtime`: Modification time for files edited in the client workspace is set to the time when the file is submitted to the depot. `rmdir`: Deletes a workspace folder if all the files contained in the folder are removed.
   `Stream Root` | Root directory for a workspace associated with a mainline stream. To learn more on streams and how P4 Server handles stream workspaces, see Stream workspaces work differently.
   View | The workspace view determines which portions of the depot are visible in your Workspace Tree and where local copies of depot files are stored in your workspace. If you use streams, the workspace view is generated and updated automatically. To learn more on workspace views, see Define a workspace view.

5. Click OK to save your entries and create the workspace specification.

Your search for returned results