Highlight and trim trailing whitespace.
All trailing whitespace can be highlighted with a customizable color. 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.highlightCurrentLine: enable/disable highlighting of trailing whitespace on the current line (where cursor is located). Default isfalse.tws.highlightColor: color for trailing whitespace highlight. Accepts any valid CSS color (hex, rgb, rgba, named colors). Default isrgba(230, 0, 0, 0.2).tws.debugLog: enable/disable debug log channel
- jsdiff is used to find modified lines