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?
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).
Click the (...) button and then select Undo Last Commit to undo the previous commit. The changes are added to the Staged Changes section.
Hit Ctrl+Shift+P, enter GitLens: Toggle File Blame, and click Enter.
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.
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"
}
Just go to Settings and search for "Scm Diff Decorations" and set to none.
Look under Settings -> Features -> SCM -> Diff Decorations and set to none
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With