Search code examples
visual-studiovisual-studio-2017

What do the grey marks in the Visual Studio Scroll Bars indicate?


Visual Studio 2013 added color indicators to the vertical Scroll Bar and provided a somewhat helpful legend in the introductory page. And, other questions on this site have asked about the general meaning of the colors, and about particular, less common colors. But, having upgraded to Visual Studio 2017, now I see new grey marks on the scrollbar and I am having a difficult time determining their pattern and significance.

Visual Studio Vertical Scroll Bar with unknown marks

I know the red marks indicates an error, the yellow mark indicates a change, and the thicker, darker grey mark indicates the scroll position. Those lighter grey marks don't align with classes, properties, or anything else I can tell.


Solution

  • They show the locations of suggestions for code fixes.

    For example, in one of my projects, I have one showing me where it is suggesting a second class in the file can be pulled out into its own separate file.

    (Note the 3 little grey dots under the A in AssertionExtensions)

    You can see the suggestion by either using Ctrl+. or clicking the light bulb icon on the left.

    Code fix in Visual Studio