How to sort properties by name in IntelliJ IDEA debugger?

Thoomas :

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

Andrew Tobilko :

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=36120&siteId=1