This extension automatically runs ReSharper's Silent Cleanup command when saving documents.
In ReSharper 2018 (and up), you can set the default silent cleanup profile in 4 easy steps:
Open ReSharper's "Options", and go to "Code Cleanup".
Select the desired profile.
Click "Set as default".
Click save.
NB: You can create (and configure) your own custom profile by duplicating an existing profile.
To find out more about ReSharper's Code Cleanup profiles, click here.
Compatibility:
Only compatible with Visual Studio 2019 and later (although this might change later).
Any version of ReSharper that supports either the "ReSharper.ReSharper_SilentCleanupCode" or the "ReSharper_SilentCleanupCode" command.
NOTE: As of ReSharper v2020.2, this plugin has become redundant as ReSharper now has native code cleanup on save functionality.
Known Issues:
When saving multiple files, the active document may flicker back and forth between the unsaved tabs and your last active document.
After ReSharper has formatted the document, you need to call save a second time - this is due to Visual Studio's API only triggering AFTER the document has already been saved. (Further investigation is required)
On Build, documents are saved without being formatted. This is by design due to limitations with the API.
Credits:
The icon was created using serval different icons originally make by Freepik from www.flaticon.com