Skip to content

Make diffEditor.ignoreTrimWhitespace false by default #311014

@Tem3dy

Description

@Tem3dy

The option diffEditor.ignoreTrimWhitespace, which is set to true by default, hides changes in the diff editor when a line remains the same in content but the indentation (leading whitespaces) change.

This is dangerous if you're restructuring logic, most notably with early returns because VS Code does not show it as a diff at all, making me think it was broken the first time it happened, and I accidentally committed code with wrong indentation.

I would like to request for this option to be false by default unless users explicitly disable it, since it is pretty important and makes no sense to be enabled by default.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions