Assume you have a bunch of computed properties in your #Swift struct/class within an extension. Now you would like to sort these alphabetically.

Is there an #Xcode #plugin which does the job or would you do it manually? Any recommendations?

@phranck I haven’t seen such a plugin yet. I wasn’t actively searching for it though, so I might just have missed it.

I usually sort the extensions by concern or dependency.

@melgu #CodeTools by @dasdom does it for functions (and it does many other things, too). Maybe you would like to try that - „it's very good“™ 😊

https://apps.apple.com/at/app/codetools/id6477840524

‎CodeTools!

‎Xcode Source Editor Extension for Swift Code - Align Equals - Color Literal to UIColor - Copy Protocol Declarations For Selected Methods To Clipboard - Hex to UIColor - UIColor to Color Literal - Sort Imports

Mac App Store
@phranck @dasdom Ah thanks for the suggestion 😊