Sorting in Filestructure window

Hi,

is it possible to change the way items are sorted in the File Structure
window?

For C#, I would like to have the entries sorted the following ways:

  • Constructors

  • Properties

  • Methods


Within each group sort alphabetically.

Kind regards,
Henning

4 comments

No, but you can vote for an existing feature request: http://youtrack.jetbrains.net/issue/RSRP-198710 "Dynamic file structure window according to rules defined in Type Members Layout"

0

Hi,

while that feature would be great, it might be simpler to get this feature:

  • Sort by Type

  • Then by Alphabetically.


I agree that the feature described in RSRP-198710 is more flexible, but it
seems much more work.

Kind regards,
Henning

0

Yeah that version might apply to your desired behavior but how many do you think want it sorted the other way around or not by type at all? I guess to actually have an option (or another window) that is not an actual "file structure" window, using hardcoded layout is maybe not the way to go since implementation + bugfixes etc. will be "wasted time" if it only applies to a minor audience.
Might be better to "get it right" the first time.

But you can off course create another feature request at their tracker and hope for the best.

0

To be fair, the "File Structure Window" is supposed to show the structure of
the file as it is.

You can use the "Code Cleanup" to reorder things in the file (and the File
Structure window will show the new 'ordered' structure).

You can also drag and drop in the File Structure window to move things
around.

I'm not sure divorcing the File Structure Window's display from the actual
File Structure is a good thing.  It could be rather confusing.

Perhaps what you're asking is a better "solution explorer" that shows down
into class members and fields?  There are other plugins that do that, if
you're interested.  But over-loading the File Structure window seems like
the wrong way to go about it.


"Henning Krause"  wrote in message
news:j1r934$lqk$1@nntp-server.labs.intellij.net...

Hi,

is it possible to change the way items are sorted in the File Structure
window?

For C#, I would like to have the entries sorted the following ways:

  • Constructors

  • Properties

  • Methods


Within each group sort alphabetically.

Kind regards,
Henning

0

Please sign in to leave a comment.