-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
Recommend changing ignoreTrimWhitespace default to false #15968
Comments
@pbrianmackey sorry about the settings confusion, we're working on this see here. Assigning to @alexandrudima for default setting question... |
Most diff editors show a prominent toggle in the form of an icon that switches between ignoring trim whitespace or not. IMHO, we need to add such a UI element. |
+1 to an "ignore whitespace" toggle in the interface. This issue has become even more important with the new partial-staging feature, where you can stage and commit individual changes from the editor. Currently, if you make a change that also affects whitespace of other lines (like adding a |
This iteration we focus on issue grooming. This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
I recommend modifying VS code to default to diffEditor.ignoreTrimWhitespace = false to maintain parity with git diff. On my team whitespace is a big part of the code review and beautification process. Not being able to see the whitespace in a diff lead me down a rabbit hole. That's not a good place to be for a new user.
More details on my initial experiences with this: http://stackoverflow.com/questions/30140595/show-whitespace-characters-in-visual-studio-code/40744352#40744352
The text was updated successfully, but these errors were encountered: