In company we use team-shared setting with code cleanup. When we doing some changes team-shared settings rewrites (deleted our custom settings) C# -> File Layout -> Default Pattern.
Steps to reproduce:
Write new code (Properties and fields) and saving document - code clean up window is appearing. Clicking Run and close Visual studio. Start Visual Studio. Check dotSettings file size or try to find /Default/CodeStyle/CSharpFileLayoutPatterns/Pattern/@EntryValue. Whole section with our custom code is deleted.
Visual Studio 2022
Format Document on Save 3.1
Maybe somebody know how to resolve it. Or prevent deleting this default pattern. Thanks.