Simple, lightweight Visual Studio extension that allows you to checkout and revert files in Perforce without slowing down or blocking your IDE.
Note: It is recommended to disable Git as the default source control provider in Visual Studio. Otherwise, this will make read-only files writable which will confuse the plugin and Perforce!
Access commands for current file in extension toolbar menu. (Under Extensions in VS2019)
Right-click active file tab.
Right-click items in Solution Explorer.
Bind keyboard shortcuts to commands.
P4 command success/failure summary is shown in the status bar.
(When checking out, a
You'll need a relatively recent version of the Perforce client with
Specify client, server and user names for up to 6 workspaces. Any
workspaces configured here will show up in the
The selected workspace is saved in the suo file for each solution.
Switch the Output Window to P4EditVS to see P4 command logging to help identify issues if commands are not being executed as expected. This will help quickly identify issues such as being logged out of the server, expired tickets, etc.
Building from Visual Studio
To Build for VS2015 - VS2019
To Build for VS2022+
To debug the addin, you can run Visual Studio in the debugger. Right
Then run. You get a second copy of Visual Studio, with the addin loaded.
Contributions are welcomed where they improve the user experience and do not affect IDE performance.
Thanks to the following contributors for making this extension better.
How is this extension different to the official P4VS extension?
Unlike P4VS, P4EditVS does not aim to provide complete coverage of all Perforce features from within Visual Studio. Instead it uses p4.exe and p4vc.exe to carry out commands with basic integration into Visual Studio. E.g. context menus and auto-checkout. P4EditVS is designed to have zero noticeable overhead and prioritises the users' experience in Visual Studio. This means that some features may not be present in P4EditVS that are in P4VS.
Why should I use P4EditVS over the official P4VS extension?
If you're experiencing performance issues, have a slow Perforce connection or want a lightweight and simple extension then P4EditVS might be for you.