

editorconfig file exists for the project, those are the settings that take precedence." Microsoft documentation from August 2021 says: "For C# code files, Visual Studio 2019 has a Code Cleanup button at the bottom of the editor (keyboard: Ctrl+K, Ctrl+E) to apply code styles from an EditorConfig file or from the Code Style options page. It lets developers configure code styles they want to apply by choosing one of two profiles in the Configure Code Cleanup dialog box. One nifty little feature in the brand-new Visual Studio 2022 17.1 Preview 2 is automatic Code Cleanup on Save.Ĭode Cleanup was actually introduced way back in 2018 with Visual Studio 2019 Preview 1.
