How can I trim trailing whitespace in Visual Studio 2012 on save?

There are at least two extensions that can do this. One is CodeMaid which explicitly will trim trailing blanks on save, and the other is Productivity Power Tools which can run the Format Document automatically on save.

To add an extension from within Visual Studio 2012, select menu ToolsExtensions and Updates…. In the window, select Online on the left and enter your search string for CodeMaid or Productivity Power Tools in the box on the upper right.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)