2

VS2022 displays for example green vertical lines (next to line numbers) as indicators of saved changes. How to disable/hide those markers?

astrowalker
  • 3,123
  • 3
  • 21
  • 40

1 Answers1

5

Go to Tools → Options → Text Editor → General and uncheck "Track Changes":

enter image description here

This should disable the green lines (saved changes) and yellow lines (unsaved changes) you get near the line numbers, as well as in the scroll bar.

Timothy G.
  • 6,335
  • 7
  • 30
  • 46
  • 3
    How can I disable change marks near line numbers only? It is annoying as everytime I click there to select lines it opens some popup I am not interested in. At the moment I have disabled them all. The VS is getting more and more complicated and not handy as it was before. – ADM-IT May 19 '22 at 14:19
  • 1
    @ADM-IT I am actually using the preview version of Visual Studio 2022, and *I believe* (but I am not certain) that the thing that controls what you are talking about is the new line staging support feature that is in the Preview Features options: https://i.stack.imgur.com/99kj9.png. I actually asked/answered my own question about this in regards to the color changes to these indicators that this feature does: https://stackoverflow.com/questions/72142182/how-to-change-the-colors-of-the-modified-lines-indicator-in-version-17-2 – Timothy G. May 19 '22 at 14:29
  • Thanks mate. That is what I was looking for. For git changes preview and blame I use GitExtensions. – ADM-IT May 19 '22 at 16:45