File layout ordering in Resharper 9 is fundamentally broken

I recently bought Resharper 9, update 1 for VS 2013 and am a bit disappointed so far.

I am trying to create a custom file layout and it is unable to distinguish between regular and static classes. I've attempted several different ways and none work.

I want to do the following:
     Place non-static classes first.
     Place static classes next.

There are two ways to do this that I have tried.

1) Create two entries, one for non-static classes and one for static classes like so:

    <Entry DisplayName="Classes">
      <Entry.Match>
        <And>
          <Kind Is="Class" />
          <Not>
            <Static />
          </Not>
        </And>
      </Entry.Match>
    </Entry>
    <Entry DisplayName="Static Classes">
      <Entry.Match>
        <And>
          <Kind Is="Class" />
          <Static />
        </And>
      </Entry.Match>
    </Entry>

2) Create one entry for classes in general and play with the "sort by" fields.

No matter what I try, the this is always the result:

 
public static class StaticClassPublic
{
}
 
public class ClassPublic
{
}


The static class *always* comes first.

I've even tried changing the sorting priorities to no avail.

Resharper appears to be hard coded to ignore the specified sorting order, and always put static classes first.

This is a very simple case. The reason that I say it's fundamentally broken is that if it can't handle such a simple ordering, then it's most likely indicative of a much larger problem under the covers.

2 comments
Comment actions Permalink

Hello Matt

  Our apologies for the inconvenience.

  You are welcome to track https://youtrack.jetbrains.com/issue/RSRP-434618 progress.

Thanks!

0
Comment actions Permalink

Thanks Alexander, I'm glad to hear it's being worked on. I'll keep an eye out for the fix in a future update.

0

Please sign in to leave a comment.