Structure View Sort in Declaration Order According to Code

Answered

I came from eclipse and love IntelliJ so far. But there is one thing:

Can i have the Structure view to be in the same order as my code?

You can do alphabetically or by visibility (public/private). If you have none of these options active, the structure View does not display methods and stuff in the same order as they appear in code, but by item type.

I kind of rely on my code structure, so it would be nice to see that reflected in the Structure view.Is there a hidden setting to achieve that? Will it be implemented in the future? As Eclipse had that sorted out, you coud even drag/drop methods and classes up and down to sort them (which is also not that simple in IntelliJ. There are hotkeys, but thats not so nice).

Currently, this is a K.O. in my point of view, as I figured out that I really need that outline/structrure view to be sorted properly.

Can anyone help?

Thx and br, Markus

1
1 comment

There is no such an option. Please vote for this request: https://youtrack.jetbrains.com/issue/IDEA-150238

Note, that structure allows fast navigation, typing quickly finds what is needed.

>As Eclipse had that sorted out, you coud even drag/drop methods and classes up and down to sort them (which is also not that simple in IntelliJ. There are hotkeys, but thats not so nice).

There is also a request for this: https://youtrack.jetbrains.com/issue/IDEABKL-71

0

Please sign in to leave a comment.