Green Bars in Visual Studio 2010

Visual StudioVisual Studio-2010

Visual Studio Problem Overview


I am wondering what these greens things are in Visual Studio 2010. What are they for? They look pretty random but of course they have to have some meaning. Can any one tell me?

At first glance they don't mean any thing to me.

Picture 1:

Image 1

Picture 2:

Image 2

Edit:

They show saved changed content during the document open. Once you close the document they disappear.

Visual Studio Solutions


Solution 1 - Visual Studio

They show lines that you have changed.

See here for more details and a table showing what the different colours mean:

+-----------+------------------------------+-------------------------+
| Marker    |     Different from           |    Different from file  |
|  colour   |       file saved on disk?    |      that was opened?   |
+-----------+------------------------------+-------------------------+
| Nothing   |        No                    |       No                |
| Yellow    |        Yes                   |       Yes               |
| Green     |        No                    |       Yes               |
| Orange    |        Yes                   |       No                |
+-----------+------------------------------+-------------------------+
Edit: Blue indicates that the line was changed, saved and then reverted by undoing.
To see the entire list of colour schemes, go to Tools>Opitons>Environment>Fonts and Colors.(or Ctrl+Q.then type "Fonts and Colors")

Solution 2 - Visual Studio

Yellow - source code that has been changed since you opened the file, and that hasn't been saved.

Green - source code that has been changed since you opened the file, and that has been saved.

Solution 3 - Visual Studio

IN SUMMARY...

Start out blank.

Make a change = Yellow.

Save the change = Green.

Undo = Orange.

Change the line again = Yellow.

Solution 4 - Visual Studio

Visual Studio editor margin can also show light blue bars. But it is only substitution of orange color in some dark themes.

In addition to other answers, please note that there is blue instead of orange in dark themes:

Light themes

enter image description here

Dark themes

(orange color is represented as light blue)

enter image description here

Customization

Using Visual Studio Color Theme Editor plugin from the Microsoft, you can focus on the following 3 items:

enter image description here

The same plugin is available also for more recent versions of Visual Studio, for example
Visual Studio 2015 Color Theme Editor.

Solution 5 - Visual Studio

This is edited lines of text after last save

or/and

Lines of code edited by Edit->Advanced->Format Document. It formats code (spaces, line breaks, etc) corresponding VS settings for current file's language

Solution 6 - Visual Studio

Those indicate where the source code has been changed.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTarikView Question on Stackoverflow
Solution 1 - Visual StudioadrianbanksView Answer on Stackoverflow
Solution 2 - Visual StudioRyan LundyView Answer on Stackoverflow
Solution 3 - Visual StudioDoug NullView Answer on Stackoverflow
Solution 4 - Visual StudiomiroxlavView Answer on Stackoverflow
Solution 5 - Visual StudioabatishchevView Answer on Stackoverflow
Solution 6 - Visual StudiodthorpeView Answer on Stackoverflow