Visual-studio – What do the Visual Studio margin colors mean

visual-studio

I noticed that Visual Studio colors a few pixel wide area in the margin, to the right of the area where you place breakpoints. What do these colors mean?

Best Solution

Colours as follows:

  • No colour = Line unchanged since you opened the file
  • Green = Line changed since you opened the file, but saved
  • Yellow = Line changed since you last saved
  • Blue = Line changed and saved, then reverted back by undoing.

To see the entire list of colours, go to Tools>Options>Environment>Fonts and Colors.