How can I sort class members by name in NetBeans, or another Java IDE?

前端 未结 8 1513
小蘑菇
小蘑菇 2021-02-13 06:01

I want to sort members by name in the source code. Is there any easy way to do it?

I\'m using NetBeans, but if there is another editor that can do that, just tell me th

8条回答
  •  清酒与你
    2021-02-13 06:54

    In Netbeans 8.0.1:

    Tools -> Options -> Editor -> Formatting -> Category: Ordering
    

    Netbeans member sorting

    Then:

    Source -> Organize Members
    

    Netbeans member sorting

提交回复
热议问题