VS Code Extensions
Selective Trailing Trim

Selective Trailing Trim

by isnandar1471

Selective Trailing Trim is a Visual Studio extension for selectively removing trailing whitespace from code and text, providing a simple way to clean up formatting where needed.

Downloads

23

Rating

— (0)

Version

0.0.2

Last updated

Apr 11, 2026

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!

Features

  • 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.

Demo

Demo of Selective Trailing Trim

Installation

You can install this extension directly from your preferred marketplace:

Alternatively, search for "Selective Trailing Trim" in your VS Code Extensions tab.

Development

Interested in contributing to or developing this extension locally? Please check out the Development Guide.