Beginner setup of Resharper for sorting classes
I am would like to setup resharper to order the variables and members in a class
I would like, something like,
private variables
public variables
constructor
private methods
public methods
And then inside of each of those, ordered alphabetically.
I have searched the web a lot and I have seen references to a xaml file that I did find, but not knowing resharper, I would not want to try changing that.
Are entries in the XAML file the only way to accomplish what I want to do? I have tried without that and so far, it doesn't sort anything on a cleanup, though sometimes it does seem to work on small classes.
How might I accomplish the sort I am looking for? I have looked at a lot of links on the web and followed their suggestions and so far, it doesn't actually work as expected.
thanks
Please sign in to leave a comment.
Hello Terrill Snyder, thank you for your question.
You need to configure FIle Layout in "ReSharper | Options | Code Editing | C# | File Layout". You can create a new entry or edit one of the existing default entries. Just drag and drop the elements you need and change the values for them. I could make a prototype for you, but I need to know more details for this: what exactly do you mean by variables, for example. Below are some screenshots that I hope can help.