26

I have only recently paid any attention to the appearance of little green and blue rectangles on my vertical scroll bar in code editing windows in VS2010. Can anyone tell me what these are?

I'm running with the Productivity Power Tools extension and ReSharper 6.

ProfK
  • 49,207
  • 121
  • 399
  • 775

3 Answers3

43

I have not found a color legend for the bits, but here is what we have found so far;
Light Blue = Bookmarks
Blue = Error / Warning
Orange = Find Results
Red = Breakpoint
Light Purple = Other instances of the selected variable
Dark Blue = Current cursor location
Yellow = Not saved changes
Green = Saved Changes
Dark Green = Spelling error (in comment or string literal)

Chris Woodruff
  • 561
  • 1
  • 5
  • 10
  • "Saved Changes" appears to be changes you have saved to the file since you opened it. It doesn't compare the file against what's in source control - if you close the file and reopen it, it doesn't remember your saved changes. – mhenry1384 May 25 '12 at 15:31
  • 1
    Should add: Dark Green - Spelling error (in comment or string literal). These actually kind of annoy me, because you get a lot of false-positives simply because of commonly used project-specific terms that aren't in the dictionary. – Darrel Hoffman Sep 24 '12 at 14:32
  • 2
    Blue are declarations, not error / warning, at least in my case (VS2012, dark) – G. Stoynev Jan 13 '14 at 18:20
  • In mine (2013 Community) Red means error. Which I think is better than blue means error. –  Mar 24 '15 at 16:59
  • Is there are any for where the "selected text" has appeared in the document? – Yousuf Azad May 05 '16 at 04:25
  • 3
    Did anyone find a way to alter these colors? I can't find them under "Fonts and Colors". – needfulthing Aug 25 '16 at 15:20
16

From the productivity power tools extension page:

Enhanced Scrollbar
We’ve been looking into ways that we can improve the experience of navigating through code files. Our solution is the source map which has three modes that will allow you to more easily see the interesting artifacts in your files (edits, breakpoints, bookmarks, errors, warnings etc) and make it easy for you to navigate between them. The default mode is the “scroll bar only mode” which overlays icons onto the standard scrollbar to allow for viewing of these artifacts. In the source map mode, we’ve replaced the default scroll bar allow you to click on any item on the scrollbar to navigate directly to it. This source map mode also provides a preview of the part of the document as you hover. Finally, we have the detailed source map mode, which allows you to get a zoom out view of your entire file. You can switch between any of these modes by right-clicking on the scroll bar or going to Tools Options>Productivity Power Tools>Source Map where we have a host of other options that you can configure.

DaveShaw
  • 52,123
  • 16
  • 112
  • 141
  • 2
    Thanks. Funny, I disabled the extension to see if they were related to it, then when I read your answer, I was puzzled because they had vanished. Slow Friday. – ProfK Aug 05 '11 at 08:39
  • 1
    I may have missed something, but I don't see a colour key or legend stating what the coloured bits mean when in Scroll Bar mode. – ProfK Aug 09 '11 at 07:27
  • Yea the answer below would better be accepted for this question, IMO. But thanks for the info as well, still helpful. – Daniel Jackson Jul 30 '19 at 21:29
  • I'm sorry if I offended whoever disliked my above comment. I was very respectful and not toxic at all which is confusing...? The below post has more than double the votes so dislike everyone there as well if you're being logical. – Daniel Jackson Jul 31 '19 at 21:49
-3

For what it is worth if you hover on the word with a spelling error a box will appear below. You then mouse over the box and a drop arrow will appear from there you can select the correct spelling or add a word to the dictionary.

KenF
  • 544
  • 4
  • 14