What do the Visual Studio margin colors mean?

2019-01-23 00:34发布

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?

2条回答
smile是对你的礼貌
2楼-- · 2019-01-23 01:24

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.

查看更多
我命由我不由天
3楼-- · 2019-01-23 01:24

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.

查看更多
登录 后发表回答