Auto Code Clean & Format On Save Auto Code Clean & Format On Save automatically runs your chosen Code Cleanup profile every time you save a file in Visual Studio. This keeps your code consistently formatted and aligned with your team’s style rules—without any extra clicks. Key Features Runs on Save: Triggers Code Cleanup whenever you save a document. Profile Selection: Choose which Code Cleanup profile should be used. Safe by Default: Existing comments are preserved and never removed unless you explicitly enable comment cleanup. Works with VS 2022+: Supports amd64 and arm64 Visual Studio installations. How It Works After installation, the extension hooks into Visual Studio’s save operation. When you press Ctrl+S (or save via menu), it runs the selected Code Cleanup profile automatically. Configuration You can configure the extension from: Tools → Options → Auto Code Clean & Format On Save From there you can: Enable/disable automatic cleanup on save Select the Code Cleanup profile to run Optionally allow comment cleanup Notes The extension uses Visual Studio’s built-in Code Cleanup feature. If you don’t have cleanup profiles set up yet, you can create/edit them under: Tools → Options → Text Editor → Code Cleanup Feedback / Issues If you find a bug or want a feature, please open an issue on GitHub: https://github.com/simsekali38/AutoCodeCleanupFormatOnSave |