Before you begin
Throughout the P4 VS Code documentation, workspace refers to a Visual Studio Code workspace. P4 client or client workspace refers to the P4 mapping of depot paths to local files.
Before you install the P4 for Visual Studio Code extension, make sure you meet the following requirements:
-
Microsoft Visual Studio Code version 1.103 or later is installed.
-
Network access to a reachable P4 Server (P4PORT) is available.
-
A valid P4user account is configured, and authentication succeeds (for example, running p4 info completes without errors).
-
An existing client workspace is available. The P4 VS Code extension does not support creating clients and requires an existing client to operate.
-
Visual Studio Code is opened from the root directory of the client workspace. Opening a sub-directory or a non‑workspace directory prevents the extension from detecting the client.
-
You have read and write permissions for the local workspace files.