Git Diff Margin displays live Git changes of the currently edited file on Visual Studio margin and scroll bar.
- Supports Visual Studio 2012 through Visual Studio 2022
- 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 except for Visual Studio 2010 which still use configured Git external diff tool
- 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
- Diff against something other than HEAD (Advanced users)
For a better experience you should disable Visual Studio built in 'Track changes' bar.
If you use and 💗 Git Diff Margin extension think of becoming a sponsor now!
https://github.com/laurentkempe/GitDiffMargin
You might also install it using the following Chocolatey package.
- To report a bug, please use the Issue Tracker
- To suggest an idea, please use the Issue Tracker
- Fix invisible popup images
- Add support for Visual Studio 2022
- Fix cannot install on older Visual Studio versions when Visual Studio 2021 preview 1 is installed
- Dependency reorganization and typo fix
- Update to LibGit2Sharp v0.26.2
- Update to LibGit2Sharp v0.26.1
- Diff against something other than HEAD (Advanced users)
- Fix memory leak
- Fix files with CRLF have whole file highlighted as modified
- Chocolatey package
- Fix show the diff showing empty content
- Update to LibGit2Sharp v0.26.0
- Add support for Visual Studio 2019 Preview 1
- Fix MoeIDE conflict
- Keyboard shortcut to show diff at a change works only on 1st line of a change
- Avoid to focus textbox when opening popup
- Avoid crashing if GitDiffMarginCommandHandler is not in the property bag
- Center when moving to next/previous change with keyboard shortcus
- Address the "Gold Bar" notification saying Git Diff Margin was responsible for editor slowness
- Update to LibGit2Sharp v0.24.1 This is a security release fixing two issues. It updates libgit2's included zlib to 1.2.11, and includes a libgit2 fix for memory handling issues when reading crafted repository index files.
- Add keyboard shortcut to show diff popup
- Close popup using Escape key
- Fix unhandled AccessViolationException crashes in Visual Studio updating LibGit2Sharp
- Fix diff margin not shown when editing a project file
- Fix diff window complains that files have different encodings
- Double-clicking on diff bar open
Show Difference
- Fix installation in Visual Studio 2013 and earlier
- Add support for Visual Studio 2017 RC
- Fix issue to upload on the marketplace
- Drop support for Visual Studio 2010, download latest version supporting it here.
- Update to LibGit2Sharp v0.23.1
- Breaks Edit.GoTo command
- Update to LibGit2Sharp v0.23
- Automate AppVeyor build to create vsix
- Add support for Visual Studio 15 Preview and now Visual Studio 2017 RC
- Update LibGit2Sharp and LibGit2Sharp.NativeBinaries
- Visual Studio crashes #96
- With 3.1.1 use of memory of VS2013 increased until crashing #93
- Crash in git2-785d8c4.dll seen in version 3.1.1.0 #92
- Fix SQL Server Object Explorer issue #81
- Fix Enabling GitDiffMargin kills Git Source Control Provider #85
- Fix Memory corruption in underlying libgit2 native DLL #87
- Move diff bar to the right of the line numbers #71
- Support for Visual Studio 2010, 2012 and Visual Studio 2015
- Show diff using Visual Studio Diff window except for Visual Studio 2010 which still use external diff tool
- Possibility to define shortcuts for next/previous change navigation
- Add options for highlighting untracked lines #29
- Update icons
- Improve external diff configuration handling in .gitconfig #32
- Improve "removed" glyph and editor diff positioning
- Improve support of Dark, Light and Blue theme
- Make sure the text editor is focused after a rollback
- Prevent ScrollDiffMargin from affecting the scroll bar behavior
- Play nice with other source control providers
- Fix Show Difference fails with DiffMerge for file names with spaces #38
- Fix submodules issue #40
Thanks to
- 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