Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 718
s.d Avatar asked Nov 30 '25 14:11

s.d


1 Answers

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.

like image 144
Jed Anderson Avatar answered Dec 03 '25 09:12

Jed Anderson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!