Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 461
palswim Avatar asked Oct 17 '17 19:10

palswim


People also ask

What is the scroll bar in Visual Studio 2019?

We can use Visual Studio 2019’s scroll bar as the map of the entire current file. Each dot is giving us a piece of information to make our life easy.

What do the red marks in the scroll bar mean?

The red marks in the scroll bar show where the text replacement introduced errors. The scroll bar has two modes: bar mode and map mode. Bar mode displays annotation indicators on the scroll bar.

What are the two modes of the scroll bar?

The scroll bar has two modes: bar mode and map mode. Bar mode displays annotation indicators on the scroll bar. Clicking on the scroll bar scrolls the page up or down but does not jump to that location in the file. Map mode displays lines of code, in miniature, on the scroll bar.

What is the difference between map mode and scroll mode?

Clicking on the scroll bar scrolls the page up or down but does not jump to that location in the file. Map mode. In map mode, when you click a location on the scroll bar, the cursor jumps to that location in the file instead of just scrolling up or down a page. Lines of code are shown, in miniature, on the scroll bar.


1 Answers

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

like image 184
Eric Olsson Avatar answered Sep 19 '22 14:09

Eric Olsson