Move and rename files
Before you move or rename a file, ensure that it is synced to the latest revision. Moving or renaming a file under P4 Server preserves the full revision history at the original path and links it to the new location. The move is recorded in a pending changelist and does not take effect in the depot until you submit the changelist. If needed, you can revert the move to restore the file to its original location.
-
In Visual Studio Code, select Explorer, right‑click the file you want to move or rename.
-
Select P4 > Move / Rename.
-
Enter the new file name or path in the dialog box.
The file is marked for move in your pending changelist.