Use tool-driven indents for *.props #750
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes are whitespace only
We've had a couple of recent changes where Visual Studio had to touch a .props file and the indents in the file were impacted. We've manually kept the tabs consistent with the previous versions, but it's never a great plan to try to fight your development tools.
Looking at https://github.com/microsoft/sbom-tool/blob/main/.editorconfig#L34-L36,
.props
files are supposed to use 2 spaces for tab indents:Based on this config, Visual Studio is doing exactly what it should; the previous indents didn't match the
.editorconfig
file, so the style was updated when the file was saved. These edits were created by opening the files in Visual Studio and using the Format Document option, which enforces the styles from.editorconfig
.I also checked all other files in the repo that match the aforementioned file filter and they already match the config--it's just these 3 files are are out of sync.