Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Perforce Diff Margin
Perforce Diff Margin

Perforce Diff Margin

Andrii Radchenko

|
906 installs
| (0) | Free
Perforce Diff Margin displays live Perforce changes of the currently edited file on Visual Studio margin and scroll bar. Supports Visual Studio 2012 through Visual Studio 2019.
Download

Perforce Diff Margin

Perforce Diff Margin displays live Perforce changes of the currently edited file on Visual Studio margin and scroll bar.

Perforce connection setup

To configure Perforce connection Helix Server system variables mechanism is used. You can set up them from the plugin. Just open settings in the "Perforce Diff Margin Configuration" toolbar.

p4 set is called under the hood to configure client, workspace and username. These 3 things are required to connect.

  1. P4PORT is the address of the repository.
  2. P4USER is your username
  3. P4CLIENT is workspace name. A few workspaces can exist on 1 machine, so this information is also needed for correct margins.

You can set up the variables manually and connect via P4V desktop client. In this case, the plugin will connect automatically. Usually, workspace(P4CLIENT variable) is not set by default.

You can use connect/disconnect in case something get wrong or you want to change the user for example. One more usual case: if you lose internet connection the plugin can't work because perforce require a connection for p4 diff. But when you go online again plugin can't know that connection is OK. Here connect button can help.

Features

  • Supports Visual Studio 2012 through Visual Studio 2019
  • Quickly view all current file changes on
    • Left margin
    • Scroll Bars in map and bar mode with and without source overview
      • blue rectangle for modifications
      • green rectangles for new lines
      • red triangles for deletions
      • all colors configurable through Visual Studio Fonts and Colors options
  • Undo the change
  • Copy the old code into the clipboard
  • Copy a part of the old code by selecting it in the popup
  • Show the diff in Visual Studio Diff window
  • Navigate to previous/next change on file using user defined keyboard shortcuts or the popup icons
  • Open popup with user defined keyboard shortcuts, close with esc key
  • Support Visual Studio 2013 Dark, Light, and Blue Theme
  • Support zoom

Sponsor

If you use and 💗 Perforce Diff Margin and Git Diff Margin extensions you can become a sponsor now! He is the author of Git Diff Margin and without his work Perforce Diff Margin would not exists! Thank you!

Get the code

https://github.com/w-koder/PerforceDiffMargin

Report Issue

  • To report a bug, please use the Issue Tracker
  • To suggest an idea, please use the Issue Tracker

Credits

Thanks to

  • Laurent Kempé @laurentkempe The auther of Git Diff Margin

And other contributors of Git Diff Margin:

  • Sam Harwell @sharwell for all the improvements
  • Rick Sladkey @ricksladkey for the fixes and features
  • @Iristyle for the chocolatey package
  • Yves Goergen @dg9ngf
  • @heinzbeinz for the support of Visual Studio 15 preview
  • Jamie Cansdale @jcansdale for bugfix
  • Charles Milette sylveon for bugfix
  • Gary Ewan Park @gep13 for the new chocolatey package
  • Duncan Smart @duncansmart for bug fix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft