Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove git difference indicators in Visual Studio 2022?

I opened Visual Studio 2022 today and got these symbols on my left sidebar.

enter image description here

I didn't enable those, they just appeared. If i click on them, they show this:

enter image description here

They are really annoying, especially since the red arrows appear on the right sidebars in nearly the same color as error indicators.

enter image description here

I couldn't find an option to turn these off, or find a solution online. Does anyone know how to get rid of them?

like image 820
jediknightcode Avatar asked Sep 12 '25 07:09

jediknightcode


2 Answers

As of Version 17.6.2 this is no longer a preview feature. This is now fully implemented and turned on, again, by default. To disable go to:

Tools -> Options -> Text Editor -> General

From there you want to uncheck "Track Changes".

like image 107
Matthew Verstraete Avatar answered Sep 15 '25 01:09

Matthew Verstraete


Updated Answer (February 16th, 2024):

For a time, Visual Studio forced this option upon you with no way to disable it after making this feature no longer a preview one. However, Visual Studio 2022 17.9.0 added the ability to toggle between the modes now after a recent feedback item.

Go to Tools → Options → Text Editor → General and change the "Tracking Mode" dropdown to either be Git Changes or File Changes:

tracking mode option in settings


Original Answer:

You will want to turn off Git Line Staging support.

Go to Tools → Options → Environment → Preview Features and uncheck the "Git line-staging support" option and restart the IDE.

enter image description here

Visual Studio Version 17.3 turned this feature on by default. By turning it off, Visual Studio will revert back to having the "green and yellow" change indicator bars instead of these Git ones. It will also remove those red arrows you speak of.

like image 40
Timothy G. Avatar answered Sep 15 '25 01:09

Timothy G.