57

In VS Code, if there's version control in a folder you're working in, it will try and indicate what lines are new and what lines are changed with little color patches in the "gutter" section. Actually, both on the left side near the line numbers, and also on the right side in the scroll bar. Is there a way to turn that off?

starball
  • 20,030
  • 7
  • 43
  • 238
Lokathor
  • 904
  • 1
  • 7
  • 16
  • If somebody found this because they can't see the gutter git colors - make sure it's on (opposite setting from answers below), and make sure you open the file from the Git SCM by "Open File" - it may be a different path than relative (which doesn't work righ now). – jave.web Apr 10 '22 at 21:17

6 Answers6

96

It is possible to change it in settings.json Ctrl+,

"scm.diffDecorations": "all" | "gutter" | "overview" | "none"

Or you can make them transparent:

"workbench.colorCustomizations": {
    // Gutter indicators (left)
    "editorGutter.modifiedBackground": "#0000",
    "editorGutter.addedBackground": "#0000",
    "editorGutter.deletedBackground": "#0000",
    // Scrollbar indicators (right)
    "editorOverviewRuler.addedForeground": "#0000",
    "editorOverviewRuler.modifiedForeground": "#0000",
    "editorOverviewRuler.deletedForeground": "#0000"
}
Alex
  • 59,571
  • 22
  • 137
  • 126
  • 1
    Nice. Didn't work at first, but I just had to reload the entire editor after the change. – Lokathor May 16 '17 at 14:40
  • 1
    This disabled git completely. I just want to disable gutter indicators. – Mike Barlow - BarDev Aug 16 '17 at 02:38
  • Although this does indeed remove it, I want to preserve all other git functionality. I've raised an issue. https://github.com/Microsoft/vscode/issues/37975 – Gary Willoughby Nov 09 '17 at 18:29
  • To preserve GIT functionality and just hide the gutter indicators, see my answer below. – Channel Feb 14 '20 at 08:45
  • Does anyone know where the supported colors are documented? Update: [found it](https://code.visualstudio.com/api/references/theme-color) – robenkleene Apr 27 '20 at 19:06
  • just incase someone wanted to only hide the expansion, go to `SCM: Diff Decorations Gutter Action` and change it to none –  Nov 19 '21 at 14:01
23

Just go to Settings and search for "Scm Diff Decorations" and set to none.

Channel
  • 2,183
  • 21
  • 16
8
  1. Go to File> Preferences> Settings> Features> SCM.

    Shortcut: [ Ctrl ][ Shift ][ P ] > Preferences: Open User Settings> Features> SCM.

  2. Set Diff Decorations to none.

Note that setting other options like the Gutter options shown below may remove some parts of it, but may leave the little red arrow while setting the Diff Decorations option to none will remove everything.

enter image description here

Miguel Ormita
  • 171
  • 2
  • 3
4

Look under Settings -> Features -> SCM -> Diff Decorations and set to none

Charles Naccio
  • 328
  • 2
  • 6
1

If you arrived here, wanting to turn this feature off because you kept clicking on the SCM gutter bars by accident and accidentally opening the diff when you don't want to, this may be of value to you.

As an alternative to turning this useful feature off, consider setting the "SCM: Diff Decorations Gutter Action" instead. This setting controls what happens when you click on the gutter bars; setting to "none" prevents them from being clickable. This allows you to keep the visual information they provide while getting rid of the unwanted behavior.

    "scm.diffDecorationsGutterAction": "none", // suppress opening diffs in margin ("gutters")
Jason L.
  • 1,125
  • 11
  • 19
0

In Visual Studio 2022 Under Tools --> Options --> Text Editor --> General --> Remove tick from Track changes.

Zoltan Suto
  • 81
  • 1
  • 4