Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sorting methods in Eclipse

Is there an easy way to sort methods within a class in Eclipse?

like image 230
Carl Manaster Avatar asked May 12 '09 18:05

Carl Manaster


People also ask

How do I arrange classes in Eclipse?

Under Preferences choose Java -> Appearance -> Members Sort Order. This allows you to set the order of members within a class when you use the Sort Members action.

What is sorting in Java?

The sorting is a way to arrange elements of a list or array in a certain order. The order may be in ascending or descending order.


2 Answers

select the class, Source > Sort Members

you can set the order in Java preferences

via Eclipe forums

like image 115
marcgg Avatar answered Oct 21 '22 00:10

marcgg


Found it on the Eclipse newsgroup:

select the class, Source > Sort Members

like image 17
Carl Manaster Avatar answered Oct 20 '22 23:10

Carl Manaster