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.)
To change the default option for stacked sorting, open settings by pressing Ctrl+Alt+S and navigate to Tools | Database | Data Editor and Viewer. Change the value for the Add columns to sorting option. Also, you can use the ORDER BY filter and sort data in a table by writing a query in the ORDER BY field.
Reformat line indents You can reformat line indents based on the specified settings. While in the editor, select the necessary code fragment and press Ctrl+Alt+I . If you need to adjust indentation settings, in the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | Code Style.
Create separate rows for the different method visibilities in the Arrangement
part of the Code Style
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With