Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
147 views
in Technique[技术] by (71.8m points)

Green Bars in Visual Studio 2010

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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")


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...