Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij-IDEA: How to sort members alphabetically?

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.)

like image 262
uncaught_exceptions Avatar asked Jul 02 '13 20:07

uncaught_exceptions


People also ask

How do I sort a list in Pycharm?

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.

How do I align lines in Intellij?

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.


1 Answers

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

like image 129
maba Avatar answered Sep 24 '22 19:09

maba