Create workspaces
To create a new workspace in P4 for Visual Studio:
-
Open the Open Connection dialog.
To learn more, see Connect to a P4 Server.
- Click the New button next to the Workspace field to open the New Workspace dialog.
- Enter a workspace name and click OK.
-
In the Workspace dialog, view or enter the following settings:
Setting Description WorkspaceWorkspace name. Defaults from the New Workspace dialog.
OwnerThe 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 optionsConfigures what happens when users submit files.
Line endingsThe 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. AnyCRprior to a line ending is removed for storage or syncing (for disks shared between UNIX and Windows)
DescriptionYour own explanation of the purpose of the workspace, or any related information you want to specify.
RootWorkspace root directory where you want local copies of depot files stored.
Alt RootsFor workspace specifications used from hosts on different platforms, a list of workspace roots in host-platform-specific syntax.
Optionsallwrite: 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 RootRoot 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.
- Click OK to save your entries and create the workspace specification.