Fork me on GitHub
#cursive
<
2020-11-26
>
dima17:11:52

Hello. Is it possible to sort namespace requires alphabetically when formatting file?

cfleming20:11:43

It’s not right now (apart from dpsutton’s workaround), but this is something I’ve been working on recently. I had to park it for a while, but it will be in sometime soon.

👍 3
dpsutton17:11:16

i've seen coworkers make sure that the requires are each on a line (ie, add a newline after :require and before the final closing paren) and then use the built-in intellij feature to sort lines.

3
👍 3
dima11:11:16

Didn’t know about intellij Sort lines It works, thanks for suggestion!