Disable annoying source code modification indication

Visual Studio-Code

Visual Studio-Code Problem Overview


I don't know what the correct name is for the issue I am having, or whether it is related to my VSCode, or some of its extensions.

Here is a screenshot depicting the problem:

enter image description here

Linux, VSCode 1.19.2

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

"gitlens.blame.line.enabled": false,// was working in previous versions
"gitlens.currentLine.enabled": false,// in modern version
"gitlens.codeLens.authors.enabled": false,
"gitlens.codeLens.recentChange.enabled": false,

Solution 2 - Visual Studio-Code

Answer for 2019

Ctrl+Shift+P => "Open Settings" Ctrl+F for "Show the authorship code lenses" Deselect the line.

enter image description here

Solution 3 - Visual Studio-Code

November 2021 review:

(GitLens v10.0.0-11.7.1, VSCode v1.62.0)

Ctrl+Shift+P -> GitLens: Open Settings. Then find "Current Line Blame" and "Git Code Lens" headers. Just deselect big checkboxes located at them:

enter image description here

enter image description here

Solution 4 - Visual Studio-Code

One can now simply add "gitlens.mode.active": "zen" to settings.json with Gitlens version 9.5.1 to disable the annoying in-line features.

Tested with VScode 1.31.1 on Windows and Mac.

Solution 5 - Visual Studio-Code

The name of the setting that you're looking for is called, Git Code Lens.

As mentioned in previous replies, there are several options available in the User or Workspace Settings Configuration. In more recent versions of VS Code, you can more easily access those settings from the menu.

  • On Windows/Linux - File > Preferences > Settings
  • On macOS - Code > Preferences > Settings

To update this setting for all projects, Navigate under User Settings > Extensions > GitLens. I chose to disable Git Code Lens entirely by deselecting the checkbox for Code Lens: Enabled; however, you may only want to disable certain features or only at the workspace level. I have included a screenshot including some of the settings below.

enter image description here

For additional information on User and Workspace Settings within VS Code: https://code.visualstudio.com/docs/getstarted/settings

Solution 6 - Visual Studio-Code

As of version 8.5.6 you can turn it off with:

"gitlens.codeLens.enabled": false

Solution 7 - Visual Studio-Code

2021 recent Visual Code. "Current Line Blame" is the one you should be looking for.

enter image description here

Solution 8 - Visual Studio-Code

Windows 10 VSCode 1.63.2 2022 Git> Decorations: Enabled Solves the problem

Image of vscode settings

Solution 9 - Visual Studio-Code

As of 1st Jan, 2022:

Go to settings and search for "current line blame". Then uncheck the option that says Gitlens>Current Line>Enabled

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionhumkinsView Question on Stackoverflow
Solution 1 - Visual Studio-CodeAlexView Answer on Stackoverflow
Solution 2 - Visual Studio-CodeMonarch WadiaView Answer on Stackoverflow
Solution 3 - Visual Studio-CodeKarol SelakView Answer on Stackoverflow
Solution 4 - Visual Studio-CodeNigel GilbertView Answer on Stackoverflow
Solution 5 - Visual Studio-CodeSteve HarrisonView Answer on Stackoverflow
Solution 6 - Visual Studio-CodemeatherlyView Answer on Stackoverflow
Solution 7 - Visual Studio-CodeSmallChessView Answer on Stackoverflow
Solution 8 - Visual Studio-CodeKAIXENIXView Answer on Stackoverflow
Solution 9 - Visual Studio-CodeKP SinghView Answer on Stackoverflow