Eclipse organize methods in alphabetical order

后端 未结 4 1616
感情败类
感情败类 2020-12-09 07:50

I have a large class that contains about 30 methods. Is it possible to automatically sort them in alphabetical order in eclipse? I was hoping to do this so they would be e

4条回答
  •  忘掉有多难
    2020-12-09 08:23

    You can actually sort members of your class in your code with eclipse, in my opinion this improves readability but should be used with caution.

    select the class, Source > Sort Members

    Thanks to marcggs' answer.

提交回复
热议问题