有没有通过修饰符排序成员的Eclipse快捷方式? [英] Is there an Eclipse shortcut to sort members by modifier?
本文介绍了有没有通过修饰符排序成员的Eclipse快捷方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在Eclipse中寻找快捷方式,偏好或插件,它将通过可见性修饰符对Java成员进行排序。具体来说,我正在寻找这样排序的类:
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.
推荐答案
Window-> preferences-> Java-> Appearance-> Members Sort
Window->preferences->Java->Appearance->Members Sort
这篇关于有没有通过修饰符排序成员的Eclipse快捷方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文