What do the Visual Studio margin colors mean?

Viewed 25364

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?

2 Answers

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.

This is an indication of what has been edited. Green means unchanged since last build (save technically, but files are saved every time the project is built), yellow means edited. No color means that the file is unchanged since opening the file.

Related