visual-studio Visual Studio 线条颜色
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3009334/
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
Visual studio line colors
提问by Telavian
In Visual Studio, what does the vertical color bar between the line numbers and the code mean? Sometimes there is green, yellow, or nothing.
在 Visual Studio 中,行号和代码之间的垂直颜色条是什么意思?有时有绿色、黄色或什么都没有。
回答by ChrisF
Nothing means no changes.
没有意味着没有变化。
Green means saved changes. These will disappear when the file is closed and reopened.
绿色表示已保存更改。当文件关闭并重新打开时,这些将消失。
Bright yellow means unsaved changes. These change to green when the file is saved.
亮黄色表示未保存的更改。保存文件后,这些将变为绿色。
Dark yellow means unsaved undos (i.e. you've made and edit and then hit Ctrl+Z). These disappear when the file is saved.
深黄色表示未保存的撤消(即您已创建并编辑,然后按 Ctrl+Z)。保存文件后,这些将消失。
回答by JYelton
The line indicates changes to code since last save.
该行表示自上次保存以来对代码的更改。
- No color = no change
- Yellow = Track changes before save
- Green = Track changes after save
- 没有颜色=没有变化
- 黄色 = 保存前跟踪更改
- 绿色 = 保存后跟踪更改

