Intellij-IDEA: How to sort members alphabetically?

uncaught_exceptions picture uncaught_exceptions · Jul 2, 2013 · Viewed 29.6k times · Source

I am using Intellij-IDEA 12. Most of team mates use Eclipse and while saving it sorts members automatically first based on Visibility and then Alphabetically. I want to mimic the same functionality in Intellij. But it seems that when I choose arrange members alphabetically, it overrides visibility (and all other) rules. How can I sort members based on Visibility (Public - Default - Private ) and within that sub-group sort them Alphabetically?

Edit: This assumption made in the question is wrong. Like mentioned in the Answer by @Maba, creating separate rows and marking them as "Order Alphabetically" works as expected. ( I had separate rows for fields but failed to create separate rows for Methods and hence the confusion.)

Answer

maba picture maba · Jul 3, 2013

Create separate rows for the different method visibilities in the Arrangement part of the Code Style.

enter image description here

enter image description here

enter image description here

enter image description here