View and display changelists

The Source Control view displays your pending changelists and the files open in each one. You can review changelist details, organize files across changelists, and customize how changelists are displayed to match your workflow.

View pending changelists

Open the Source Control view from the Activity bar.

Each pending changelist appears as a group, identified by its P4 changelist number and description. Files open in the changelist are listed beneath it. The number shown is the changelist number, not a count of changed files. Hover over the number to see a tooltip confirming this.

View changelist details

You can review a changelist without opening it for editing.

  1. In the Source Control view, right‑click a pending changelist.

  2. Select View changelist.

A read‑only summary opens, showing the changelist number, status, user, client, timestamp, full description, and any jobs linked to the changelist.

Move files between changelists

You can reorganise work by moving files from one pending changelist to another.

  • To move a single file, right‑click the file and select Move to changelist.

  • To move multiple files, hold Ctrl (Windows/Linux) or Cmd (macOS), select the files, right‑click the selection, and choose Move to changelist.

All selected files are moved together to the target changelist.

Delete a changelist

You can delete a pending changelist if it contains no open files.

  1. In the Source Control view, right‑click an empty pending changelist.

  2. Select Delete changelist.

The default changelist cannot be deleted. Move or revert any open files before deleting a changelist.

Control changelist display options

You can customize what appears in the Source Control view by using the following settings under Extensions > P4 VS Code:

  • Changelist Order: Sorts changelists by number in ascending or descending order. Default: descending.

  • Hide Non Workspace Files: Controls visibility of files outside the current workspace:

    • show all files (default): Displays all open files in all pending changelists, including files that are outside the current Visual Studio Code workspace.

    • hide changelists: Hides entire changelists that contain only files outside the current Visual Studio Code workspace.

    • hide changelists, hide files in default changelist: Hides changelists that contain only non‑workspace files and also hides non‑workspace files within the default changelist.

    • hide non‑workspace files: Displays all changelists but hides individual files that are outside the current Visual Studio Code workspace.

  • Hide Empty Changelists: Hides changelists that contain no open files. Default: false.

  • Hide Shelved Files: Hides shelved file entries from the Source Control view. Default: false

  • Ignored Changelist Prefix: Hides changelists whose descriptions start with a specified prefix.

  • Count Badge: Controls the badge count on the Source Control icon:

    • all‑but‑shelved (default): Displays a badge count on the Source Control icon that includes all open files, excluding shelved files. This helps you track active, unshelved changes at a glance.

    • all: Displays a badge count that includes all files, including shelved files. This provides a complete view of all changes associated with your changelists.

    • off: Disables the badge count on the Source Control icon. Use this option if you do not want a visual count indicator.