Search code examples
javadebuggingintellij-ideaintellij-idea2017

How to sort properties by name in IntelliJ IDEA debugger?


Is there any way to sort the properties of an object by their names when using the Java debugger?

For example, I'm seeing this:

intellij debugging view

And I'd like to see this:

debugging ordered


Solution

  • There is no separate option for sorting only fields alphabetically, but IDEA provides the feature "Sort Values Alphabetically" in the debug tool window.

    It sorts both variables and their members in alphabetical order.

    Before: enter image description here

    After: enter image description here