A VS Code extension to surgically trim trailing whitespace. Instead of trimming trailing whitespace globally across your entire file (and polluting your version control), you can target only specific lines seamlessly!
- Trim Trailing Whitespace Selected Lines: Select a few lines (or just place your cursor anywhere on a line) to delete trailing whitespaces only on those lines.
- Trim Trailing Whitespace All Lines: Safely trims trailing whitespaces across the entire document without resetting cursor jumps.
You can install this extension directly from your preferred marketplace:
Alternatively, search for "Selective Trailing Trim" in your VS Code Extensions tab.
Interested in contributing to or developing this extension locally? Please check out the Development Guide.
