Creating workspaces

To create a new workspace in P4VS:

  1. Open the Open Connection dialog.

    For more information, see Connecting to a Helix 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 Helix 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. For more information on streams and how Helix Server handles stream workspaces, see Stream workspaces.

    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. For more information on workspace views, see Defining a workspace view.

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