-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support white-space changes in the gutter change markers #10007
Comments
I would actually prefer for whitespace changes not to show up in the Git gutter, at least in some circumstances. So I would like a configurable option to specify whether whitespace changes should or should not be considered in the gutter. |
@rmunn Agreed, more config options is always better. I'm coming from Atom/WebStorm, so this behavior threw me off a bit. |
@alexandrudima What do you think about providing a checkbox to enable/disable whitespace in the diff editor? |
@joaomoreno It would be nice to whitelist the activation for specific file formats, as well. E.g. in YAML or Python files, indentation changes code behavior. |
If vscode is going to ignore whitespace changes in the diff view, it should not stage the changes either. |
There is a setting for this for the diff editor that seems to work, |
@antcodd using this setting worked. {
"diffEditor.ignoreTrimWhitespace": false
} Thank you! |
Thanks, @sant123, that works for the Git diff view and is very helpful :) Git gutter still ignores trimmed whitespace, though, so I think keeping this issue open is still valid. |
+1 |
Although it is fine to be able to turn this off, the gutter really should he able to show the changes that actually goes into the git commit. I depend on this feature for a couple of the projects I work on as unnecessary changes in indentation clutters the change history. |
Actually, the |
Yes, but this is not about the diff editor, but the editor. This issue is not resolved as of 1.19.2. |
Steps to Reproduce:
git init test && cd test
echo "Hello" > README.md && git add . && git commit -m "test"
echo " Hello" > README.md
code .
README.md
is correctly tracked as modified in the Git/VCS tabREADME.md
.margin-view-overlays
)In this screenshot, I would expect a blue glyph (
.git-dirty-modified-diff-glyph
) to show up on line 1:My user settings:
The text was updated successfully, but these errors were encountered: