visual-studio Visual Studio 2010 中的绿条
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2823327/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Green Bars in Visual Studio 2010
提问by Tarik
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?
我想知道 Visual Studio 2010 中这些绿色的东西是什么。它们有什么用?它们看起来很随意,但当然它们必须具有某种意义。有谁能告诉我吗?
At first glance they don't mean any thing to me.
乍一看,它们对我没有任何意义。
Picture 1:
图片1:


Picture 2:
图2:


Edit:
编辑:
They show saved changed content during the document open. Once you close the document they disappear.
它们在文档打开期间显示保存的更改内容。一旦您关闭文档,它们就会消失。
回答by adrianbanks
They show lines that you have changed.
它们显示您已更改的行。
See herefor 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: Blueindicates 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")
编辑:Blue表示该行已更改、保存,然后通过撤消恢复。
要查看整个配色方案列表,请转到Tools> Opitons> Environment> Fonts and Colors.(或Ctrl+ . 然后Q键入“字体和颜色”)
回答by Ryan Lundy
Yellow- source code that has been changed since you opened the file, and that hasn'tbeen saved.
黄色-因为你打开文件,该文件已被更改,而且源代码还没有被保存。
Green- source code that has been changed since you opened the file, and that hasbeen saved.
绿色-因为你打开文件,该文件已被更改,而且源代码已经被保存。
回答by Doug Null
IN SUMMARY...
总之...
Start out blank.
开始空白。
Make a change = Yellow.
进行更改 = 黄色。
Save the change = Green.
保存更改 = 绿色。
Undo = Orange.
撤消 = 橙色。
Change the line again = Yellow.
再次更改线路 = 黄色。
回答by miroxlav
Visual Studio editor margin can also show light blue bars. But it is only substitution of orange color in some dark themes.
Visual Studio 编辑器边距也可以显示浅蓝色条。但它只是在某些深色主题中替换橙色。
In addition to other answers, please note that there is blue instead of orangein dark themes:
除了其他答案,请注意深色主题中是蓝色而不是橙色:
Light themes
轻主题
Dark themes
黑暗主题
(orangecolor is represented as light blue)
(橙色表示为浅蓝色)
Customization
定制
Using Visual Studio Color Theme Editorplugin from the Microsoft, you can focus on the following 3 items:
使用Microsoft 的Visual Studio 颜色主题编辑器插件,您可以专注于以下 3 项:
The same plugin is available also for more recent versions of Visual Studio, for example
Visual Studio 2015 Color Theme Editor.
相同的插件也可用于更新版本的 Visual Studio,例如
Visual Studio 2015 颜色主题编辑器。
回答by abatishchev
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
通过 Edit->Advanced->Format Document 编辑的代码行。它为当前文件的语言格式化代码(空格、换行符等)对应的 VS 设置
回答by dthorpe
Those indicate where the source code has been changed.
这些指示源代码已更改的位置。

