Style question : sort members ?

Cantor, Scott cantor.2 at osu.edu
Tue Feb 11 15:34:05 EST 2014


On 2/11/14, 3:04 PM, "Tom Zeller" <tzeller at dragonacea.biz> wrote:

>I like to sort source code in Eclipse via :
>
> Source -> Sort Members... -> Sort All Members
>
>Should that be a coding convention ? Opinions ?

What's the sort basis? I like sorting by access level, but I tend to sort
semantically otherwise, so not something automatable.

This is largely because I don't use IDE features much to navigate code,
I've always just viewed the class as a whole in my mind and I scroll it.
The semantic groupings let me move between the methods because I know the
code.

-- Scott




More information about the dev mailing list