How to configure Eclipse so it adds private fields at the bottom of a Java class?
By default when I select ‘create a field..’ the field gets added at the top of the class. Can I configure Eclipse so the fields are added at the bottom instead?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Window>PreferencesOn the left choose:
Java>Appearance>Members Sort OrderOn the right select
Fieldsand checkSort members in same category by visibility.After that right-click your project and choose
Source>Sort members...to modify the source code. You can configure Eclipse to execute this action automatically on save: go once again to the preferencesWindow>Preferencesand thenJava>Editor>Save actions, and click onConfigurefor additional actions.