Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code - Hide Git Changes [duplicate]

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?

like image 458
Lokathor Avatar asked May 14 '17 22:05

Lokathor


People also ask

How do I remove changes in VS Code git?

The --hard part of the command tells Git to reset the files to the state of the previous commit and discard any staged changes. To do the same in Visual Studio, right-click the commit that you want to reset your branch to, and then select Reset > Delete Changes (--hard).

How do I turn off saved changes in Visual Studio Code?

Click the (...) button and then select Undo Last Commit to undo the previous commit. The changes are added to the Staged Changes section.

How do I close git blame VS Code?

Hit Ctrl+Shift+P, enter GitLens: Toggle File Blame, and click Enter.

How do I close git blame?

You can also quit the git blame window using the q key on your keyboard. Now, if you want to learn more about what changed in a commit, simply copy the commit hash and use git log as follows. You should be able to see the full commit message, what lines are removed and what lines are added since the commit before it.


3 Answers

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"
}
like image 88
Alex Avatar answered Oct 20 '22 14:10

Alex


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

like image 41
Channel Avatar answered Oct 20 '22 16:10

Channel


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

like image 24
Charles Naccio Avatar answered Oct 20 '22 15:10

Charles Naccio