Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Trim Line Ends (VS2012-2019)
Trim Line Ends (VS2012-2019)

Trim Line Ends (VS2012-2019)

Chris McGrath

|
308 installs
| (0) | Free
Performs .TrimEnd on every line in the file.
Download

This extension trims the white space from the end of every line in the file. The original caret position in the document is maintained.

Simply select the “Trim line ends” item from the Edit menu. You may assign a shortcut; we recommend Ctrl ;, Ctrl L.

White space at the ends of lines looks sloppy to those of us who have “View White Space” enabled

This extension is open source. You can find the code here.

Version Info

Visual Studio 2022 extensions are not compatible with earlier versions of Visual Studio, which is why this version exists. The updated Visual Studio 2022 version will be available at Trim Line Ends

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft