resharper-unity icon indicating copy to clipboard operation
resharper-unity copied to clipboard

Order asmdef references alphabetically

Open sbergen opened this issue 3 years ago • 2 comments

With the new feature of adding references to .asmdef files, it would be great if they were kept in alphabetical order. This reduces the chances of getting version control conflicts when working in a team. It also groups related references nicely together.

If reordering existing references (as you can't really do alphabetical otherwise) feels like too intrusive for existing projects, perhaps it could be made an opt-in setting?

sbergen avatar Apr 27 '22 12:04 sbergen

Nice idea! I'd rather not reorder the existing list, but I think it would be ok to insert in alphabetical order, even if the existing list is out of order. And it makes sense to do the same with GUID references, too, for the same VCS reasons.

citizenmatt avatar Apr 27 '22 14:04 citizenmatt