Type layout sort by member variable type

I would like to sort my class member variables by their type. Resharper currently will let me group member variables together, then sort them by access, then by name.

It will not allow grouping/sorting by type. For example, I would like something like this:

public char x;//Sort by access, type, then name within that type.
public char y;
public int m;
public int n;
public float a;
public float b;

What is perplexing is that there is a "Kind" field to sort on. If this is not the data type, then what exactly does it mean to sort on it?

This seems like something very basic with code layout (most people group their types together), yet doesn't appear to be working. I need to know if this is the intended behavior, if it is a bug, or if I'm using it wrong.

Thanks.

Resharper 9.1 in VS 2013 (Update 4).

5 comments
Comment actions Permalink

Hello Matt,

  There is no an ability to sort members by "return type". Feel free to file a new feature request to YouTrack https://youtrack.jetbrains.com.

Thanks!

0
Comment actions Permalink

This is not return type, it's data type. Are you saying there is no way to sort on data type
either? If so, I will file the feature request.

Thanks.

0
Comment actions Permalink

Hello Matt!

Sorting on data type is not supported either.

Thanks!

0
Comment actions Permalink

I've filed a feature request:

https://youtrack.jetbrains.com/issue/RSRP-438512

I really hope this can be implemented because code layouts are the main reason I bought ReSharper. At the moment it remains mostly unused on my system.

0
Comment actions Permalink

I see no movement on this issue and would like to know if it's being worked on or considered at all?

TBH, it perturbs me that this feature does not exist. It seems so basic, and is something that almost every developer does naturally. I don't understand why it's not part of the code formatting functionality.

Can someone please provide insight into the status of this?

Thanks.

0

Please sign in to leave a comment.