How to specify the order of class members when formatting in Eclipse

前端 未结 3 429
太阳男子
太阳男子 2020-12-10 09:06

In Eclipse IDE how do you customize the Java code style formatter to have it sort the class members with a specified order, for example to group all instance methods by visi

3条回答
  •  被撕碎了的回忆
    2020-12-10 09:29

    I'm not sure when they added this functionality, but it seems to be there in 3.5:

    Window -> Preferences

    Java -> Editor -> Save Actions

    Additional actions -> Configure ...

    Code Organizing -> Members -> Sort Members

提交回复
热议问题