s.d
s.d

Reputation: 4185

How to let Eclipse JDT auto-generate methods at the end of the class?

Is there a way to let Eclipse JDT (Indigo and newer) auto-generate methods at the end of the class, rather than as the next member, when you type the name of an unimplemented method?

Ideally, methods would still be auto-generated before getters and setters.

Upvotes: 3

Views: 290

Answers (1)

Jed Anderson
Jed Anderson

Reputation: 931

I think what you want is to pull up the generate dialogs via alt-shift-s rather than just starting to type. They have Insertion Point drop-downs that let you pick where the generated code goes. Choose Last member.

Alternatively, you could always generate your code and then sort your members via Source->Sort Members but if you're incrementally adding to old code your team-mates might not like you checking in big changes like that into your repository.

Upvotes: 1

Related Questions