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.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With