Skip to content

Lexicographical order designer code #3652

Description

@elachlan

Is your feature request related to a problem? Please describe.
Historically winforms designer code has been a bit of a pain when merging code changes. The ordering often seems random, although there is basic ordering to make sure dependencies work.

The current fix to avoid merge conflicts is to make sure developers don't make changes to designer files unnecessarily, and to make sure no body is working on forms/controls at the same time. This is obviously really unproductive.

Describe the solution you'd like and alternatives you've considered
My suggestion is to add more smarts to the designer to make sure the ordering is consistent, lexicographical order seems the most appropriate. Obviously this will need to take into account dependencies as it currently does, but hopefully the random changes are reduce. Especially when opening the designer to "view" the form and making no changes.

Other changes to reduce variability in generated code would also be welcome.

Will this feature affect UI controls?
Yes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-VSDesignerWindows Forms out-of-proc designer related issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions