How can I configure ReSharper's code cleanup on save?

前端 未结 8 1755
时光取名叫无心
时光取名叫无心 2020-12-08 13:56

I would love to configure Visual Studio/ReSharper to run \"Code cleanup\" whenever I save a file.

A bonus would be to configure this only for C# files, as I sometime

8条回答
  •  忘掉有多难
    2020-12-08 14:09

    I've created an extension to automatically invoke ReSharper Silent Cleanup on file save: https://visualstudiogallery.msdn.microsoft.com/43be6ead-dabf-4bb1-b019-1e361efd8410

    It only supports ReSharper silent cleanup, but it works.

    2018 Note: This stopped working in later ReSharper versions due to ReSharper api changes

提交回复
热议问题