Visual Studio 2010 中的绿条 [英] Green Bars in Visual Studio 2010

查看:28
本文介绍了Visual Studio 2010 中的绿条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道 Visual Studio 2010 中这些绿色的东西是什么.它们有什么用?它们看起来很随意,但当然它们必须具有某种意义.谁能告诉我?

乍一看,它们对我来说没有任何意义.

图 1:

图 2:

它们在文档打开期间显示已保存的更改内容.一旦您关闭文档,它们就会消失.

解决方案

它们显示您已更改的行.

请参阅此处 了解更多详情和显示不同颜色含义的表格:

<前>+-----------+------------------------------+-------------------------+|标记|不同于 |不同于文件 ||颜色 |文件保存在磁盘上?|那个被打开了?|+-----------+------------------------------+-------------------------+|没什么|没有 |没有 ||黄色 |是 |是 ||绿色 |没有 |是 ||橙色 |是 |没有 |+-----------+------------------------------+-------------------------+

Edit:Blue 表示该行已更改、保存,然后通过撤消恢复.
要查看整个配色方案列表,请转到 Tools>Opitons>Environment>Fonts and Colors.(或Ctrl+Q.然后输入字体和颜色")

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:

Picture 2:

Edit:

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

解决方案

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

这篇关于Visual Studio 2010 中的绿条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆