Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 659
Thoomas Avatar asked Jul 25 '18 06:07

Thoomas


2 Answers

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

like image 156
Andrew Tobilko Avatar answered Nov 18 '22 08:11

Andrew Tobilko


  • Ultimate 2019.3
  • Open services
  • Click on the left on the 'wheel' settings.
  • Activate sort values alphabetically.

2 screen dumps to help the reader to find the configuration. enter image description here

enter image description here

like image 21
Rudy Vissers Avatar answered Nov 18 '22 08:11

Rudy Vissers