Allow to exclude file types from Files: Trim Trailing Whitespace #180928
Labels
*out-of-scope
Posted issue is not in scope of VS Code
under-discussion
Issue is under discussion for relevance, priority, approach
Milestone
I'd like to define exceptions for
files.trimTrailingWhitespace
so that it doesn't trim trailing whitespace for some file types.My use case is that I have .patch files. These use trailing tabs and whitespace to detect filenames and end of patch. If I edit and save a .patch file
patch
is no longer able to apply the patch. I'd like to define an exception so that trimming trailing whitespace doesn't happen for files ending in .patch or of type diff.The text was updated successfully, but these errors were encountered: