46

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?

jasonh
  • 29,297
  • 11
  • 59
  • 61
  • 1
    **See also:** [Green Bars in Visual Studio 2010](http://stackoverflow.com/q/2823327/2392157) – This question has worse title, but more accurate answers. – miroxlav Mar 25 '16 at 10:14

2 Answers2

91

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.

Klaus Gütter
  • 11,151
  • 6
  • 31
  • 36
Damovisa
  • 19,213
  • 14
  • 66
  • 88
0

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.

RCIX
  • 38,647
  • 50
  • 150
  • 207
  • 5
    This is incorrect. Green means unchanged since last *save*, not since last build. – Joe White Jun 10 '09 at 03:53
  • 1
    While technically true, files are saved everytime they are built. You do have a point though. – RCIX Jun 10 '09 at 04:01
  • 2
    Worth mentioning that no color means original code (when you opened the file) – Damovisa Jun 10 '09 at 04:03
  • 4
    Actually, files aren't necessarily saved every time you build. That's the default, but it's configurable in Tools > Options > Projects and Solutions > Build and Run. – Joe White Jun 10 '09 at 04:10
  • 2
    So it has nothing (directly) to do with version control (git)? If so I can see this get very confusing.. – ViggoV Apr 18 '17 at 10:16