How to configure Eclipse to add private fields at the bottom of the Java class?

How to configure Eclipse to add private fields at the bottom of the Java class?

By default, when I select "create field", the field is added at the top of the class. Can I customize Eclipse so that the fields are added at the bottom?

+5
source share
1 answer

Window > Preferences

On the left, select Java> Appearance>Members Sort Order

On the right, select Fieldsand mark Sort members in same category by visibility.

Source > Sort members..., . Eclipse : Window > Preferences, Java > Editor > Save actions Configure .

+8

All Articles