How to sort properties by name in IntelliJ IDEA debugger?
Others
2022-04-21 07:42:01
views: 0
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:
And I'd like to see this:
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:
After:
Origin http://43.154.161.224:23101/article/api/json?id=36120&siteId=1