Install the P4 for Visual Studio Code extension

You can install the P4 for Visual Studio Code extension on Windows, Linux, and macOS.

  1. Get the P4 VS Code extension:

  2. In Visual Studio Code, select Extensions Extensions button to open the Extensions view.

  3. Select the Views and More Actions menu (Views and More Actions button), and then select Install from VSIX.

  4. Browse to the directory where you downloaded the p4vscode.vsix file.

  5. Select the p4vscode.vsix file and then select Install.

  6. If prompted, reload or restart Visual Studio Code.

After installation completes, the P4 for Visual Studio Code extension appears in the Installed list.

After installation

After installation, the extension checks your P4 Server authentication status and configuration. If you have a valid P4CONFIG (or equivalent Visual Studio Code settings) specifying a valid user, client, and port, and a valid P4 login ticket exists on your computer, the extension connects and authenticates automatically without prompting for a password.

P4 login tickets expire based on your server configuration. If your ticket has expired, you must log in again by following the steps in Log in to P4 Server.

Next steps