views:

184

answers:

4

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:

alt text

Picture 2:

alt text

Edit:

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

+4  A: 

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

abatishchev
+1  A: 

Those indicate where the source code has been changed.

dthorpe
+13  A: 

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                |
+-----------+------------------------------+-------------------------+
adrianbanks
More than I was expecting. Thanks for the link. It is pretty useful.
Braveyard
+3  A: 

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.

Kyralessa