zjffdu
zjffdu

Reputation: 28944

Don't show class members in alphabetical order in intellij

I use Scala in Intellij, and on the project panel it would show the members of a class, but it is sorted in alphabetical order. How can I see it in natural order (the order in the source code)?

Upvotes: 0

Views: 691

Answers (2)

Jet
Jet

Reputation: 3298

You can find the settings icon on right top of the project window, there you can find the option as below, to get the natural order.

sort by type

Upvotes: 2

Bas Leijdekkers
Bas Leijdekkers

Reputation: 26562

In the Structure Tool Window you can view the class members in natural order (it has a toolbar button to sort alphabetically also).

Upvotes: 0

Related Questions