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

前端 未结 8 1515
小蘑菇
小蘑菇 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 07:00

    Netbeans lets you sort the methods in the Navigator. Personally, I never saw the point in sorting methods in the code. When possible I like to keep methods together that work together. For example, the getter() and setter(). Incremental search or being able to control-click on a method to navigate to the declaration is much more useful, IMHO.

    0 讨论(0)
  • 2021-02-13 07:03

    Eclipse can do it.

    0 讨论(0)
提交回复
热议问题