visual-studio Visual Studio 边距颜色是什么意思?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/973598/
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
What do the Visual Studio margin colors mean?
提问by jasonh
I noticed that Visual Studio colors a few pixel wide area in the margin, to the right of the area where you place breakpoints. What do these colors mean?
我注意到 Visual Studio 在您放置断点的区域右侧的边距中为几个像素宽的区域着色。这些颜色是什么意思?
回答by Damovisa
Colours as follows:
颜色如下:
- No colour= Line unchanged since you opened the file
- Green= Line changed since you opened the file, but saved
- Yellow= Line changed since you last saved
- Blue= Line changed and saved, then reverted back by undoing.
- 无颜色= 自打开文件后行未更改
- 绿色= 自打开文件后行已更改,但已保存
- 黄色= 自上次保存以来已更改行
- 蓝色= 线路已更改并保存,然后通过撤消恢复。
To see the entire list of colours, go to Tools>Options>Environment>Fonts and Colors.
要查看整个颜色列表,请转到Tools> Options> Environment> Fonts and Colors。
回答by RCIX
This is an indication of what has been edited. Green means unchanged since last build (save technically, but files are saved every time the project is built), yellow means edited. No color means that the file is unchanged since opening the file.
这是已编辑内容的指示。绿色表示自上次构建以来未更改(技术上是保存,但每次构建项目时都会保存文件),黄色表示已编辑。无颜色表示文件自打开后未更改。

