I installed Resharper in Visual Studio 22. Unlike other instances of Resharper I have, when I use the Cleanup Code command, it is putting each Property in its own region, even though they all have the same visibility. What setting is causing this?
Please sign in to leave a comment.
Oops :-) Didn't mean to put it all in the title
thank you for contacting us.
Could you please send us a sample project where we can reproduce the issue?
Also please export all your setings (ReSharper | Manage options | Export to file) and send us too.
You could share it here: https://uploads.jetbrains.com/
Thank you!
Upload ID for the settings is 2023_03_28_24GCZ18ev6RAMdqLFNCQEP.
All of my pre-existing projects are affected by this. Since this is not a project-specific issue, I didn't bother creating a project specifically for this. Below is a sample of the formatting that happens to properties: they each are getting put into their own region when their visibility is the same.
#region Properties
public string PhoneNumber { get; set; }
#endregion
#region Properties
public string TemplateName { get; set; }
#endregion
Were you able to identify the cause of the region issue from the settings I uploaded?
Hello,
thank you for the settings and sorry for the delay with the answer.
Unfortunately, I can't reproduce this issue on my side with your settings.
What version of ReSharper do you have? Is it possible to install our latest release from here: https://www.jetbrains.com/resharper/download/#section=web-installer ?
If it won't help, please send us a sample project where we can reproduce the issue.
Also how do you run Code Cleanup? How do you invoke it?
Thank you!