How to automatically remove trailing whitespace in Visual Studio 2008? Ask Question

How to automatically remove trailing whitespace in Visual Studio 2008? Ask Question

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?

ベストアンサー1

CodeMaid is a very popular Visual Studio extension and does this automatically along with other useful cleanups.

I set it to clean up a file on save, which I believe is the default.

おすすめ記事