Visual Studio - Delete whitespaces at the end of lines

Here is a little trick to remove spaces and tabs at the end of lines.

  1. Open Quick Replace (Edit / Find and Replace)
  2. Text to be searched: (:b+)$
  3. Search Options: Use regular expressions
  4. Replace all

There you go.

Leave a reply