I've recently started using VS Code, and I've noticed that there are little colored pixels that show up in the scroll bar like this:
They seem to indicate something about the source code, but I haven't been able to find the documentation for this. So my questions are as follows:
- What is the name of this feature?
- Where is it documented?
- Can this feature be disabled, and if so, how?
EDIT:
- After reading @idleberg's answer, I set
scm.diffDecorations
to"none"
and restarted VS Code, reopened files, etc, but the decorations still persist. - I followed the link in @Moffen's answer and I set
"editor.hideCursorInOverviewRuler"
totrue
, but it turns out that controls a different feature. Also, I already had"editor.minimap.enabled"
set tofalse
, but the minimap is a different feature from the scrollbar decorations. - I'm running Version 1.23.1 of VS Code on Ubuntu 18.04.
The feature is called Overview Ruler. I've been unable to find specific documentation except some sparse notes:
Related settings include:
… but also some configurable colours, which is the most thorough explanation I've found:
The green marks are changes that you have saved, yellow marks are changes that have not been saved. Red marks the location of errors.
You can see how to disable features here
These decorators indeed indicate changes in your source. Green marks code added, red marks code removed. You can disable this in your settings under the key
scm.diffDecorations
(possible value:all
,gutter
,overview
,none
.)To hide the indicators from the scrollbar, you can override the theme styles to make the indicators transparent:
Note: the example uses the
#RGBA
shorthand rather than#RRGGBBAA