Highlight and trim trailing whitespace.
All trailing whitespace can be decorated with red highlight. Trailing whitespace can be trimmed upon saving the file, but only from lines user has modified.
This extension contributes the following settings, all machine-overridable:
tws.trimOnSave
: enable/disable trimming the whitespace when saving documenttws.highlightTrailingWhiteSpace
: enable/disable highlighting of trailing whitespacetws.highlightOnlyChangedLines
: enable/disable highlighting of trailing whitespace only on changed linestws.debugLog
: enable/disable debug log channel
- jsdiff is used to find modified lines