When searching the vast internet, I find many people complaining about the many potential merge-conflicts that can appear in a WinForms auto-generated (through the UI Designer) code in the [...].Designer.cs files.
I had searched for a Visual Studio extension that might help to reduce the level of occurrence of such designer-conflicts, when multiple people have performed changes simultaneously, but I have had no luck in finding any such extension. Now, I am thinking that I'd like to write my own extension instead.
Inspired by the "ResXManager" extension, which - if all developers in a collaborative team install it - reduces merge-conflicts' occurrence in Resource-files in Visual Studio, by always sorting the contents by the created keys, instead of always placing new content at the bottom of the resource file.
I want to apply the same concept to WinForms Designer-files, ideally as a Visual Studio extension.
How can I accomplish this? Ideally, I would want to be able to listen to any change of any ".Designer.cs" file in the solution, and perform the relevant sorting of its contents. How can I add a listener to such an event and then perform the necessary modifications to the contents of the Designer-files?