Is it possible to configure Visual Studio 2008 to automatically remove whitespace characters at the end of each line when saving a file? There doesn't seem to be a built-in option, so are there any extensions available to do this?
Visual-studio – How to automatically remove trailing whitespace in Visual Studio 2008
visual studiovisual-studio-2008
Related Topic
- Visual-studio – Adding a guideline to the editor in Visual Studio
- .net – What does the Visual Studio “Any CPU” target mean
- Visual-studio – Proper way to rename solution (and directories) in Visual Studio
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- Visual-studio – Difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio
- Visual-studio – “stdafx.h” used for in Visual Studio
- Asp.net-mvc – Visual Studio debugging/loading very slow
Best Answer
Find/Replacing using Regular Expressions
In the Find and Replace dialog, expand Find Options, check Use, choose Regular expressions
Find What: "
:Zs#$
"Replace with: ""
click Replace All
In other editors (a normal Regular Expression parser) "
:Zs#$
" would be "\s*$
".