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:
Linux, VSCode 1.19.2
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:
Linux, VSCode 1.19.2
"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,
Ctrl + Shift + P
. (Cmd + Shift + P
for Mac).
Ctrl+Shift+P => "Open Settings" Ctrl+F for "Show the authorship code lenses" Deselect the line.
(GitLens v14.0.1, VSCode v1.79.0)
Ctrl+Shift+P -> GitLens: Open Settings
. Then find "Current Line Blame" and "Git Code Lens" headers. Just deselect big checkboxes located at them:
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.
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.
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.
For additional information on User and Workspace Settings within VS Code: https://code.visualstudio.com/docs/getstarted/settings
Go to settings and search for "current line blame". Then uncheck the option that says Gitlens>Current Line>Enabled
Ctrl
+ Shift
+ P
and write Open Setting
then Ctrl
+ F
search for Current Line Blame
turn it off.
Windows 10 VSCode 1.63.2 2022 Git> Decorations: Enabled Solves the problem
I think this is what most people want to achieve. Add these settings to the vscode user preferences:
{
"gitlens.currentLine.enabled": false,
"gitlens.codeLens.authors.enabled": false,
"gitlens.codeLens.recentChange.enabled": false
}
Before:
After:
If you are not using GitLens and you are using GitHistoryDiff it has a setting, "Show git blame information for each line". Uncheck that option.