Issue
I'm looking for a shortcut, preference or plugin in Eclipse which will sort Java members by visibility modifier. Specifically, I'm looking for the class to be sorted like this:
public someClass {
//public variables go first followed by
//protected and default variables and lastly
//private variables
//public methods above
//proteted and default methods with
//private methods at the bottom
}
I'm not fussed about alphabetically, only the visibility modifier.
Solution
Window->preferences->Java->Appearance->Members Sort
Answered By - Bivas
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.