In Eclipse IDE how do you customize the Java code style formatter to have it sort the class members with a specified order, for example to group all instance methods by visibility?
Share
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.
If the question is, ‘how do you customize the ‘Source -> Format’ command to re-order members?’, I don’t think it can be done. To change the order used for the ‘Source -> Sort Members’ command, change the ‘Members Sort Order’ preference: ‘Window -> Preferences -> Java -> Appearance -> Members Sort Order’