Where is the automatic region generation following a R# 6.1 upgrade

Hi,
Previous to R#6.1, when running a code cleanup on the code I was getting regions automatically created for fields, constructors, properties, methods, etc (ex.: #region Constants and Fields, #region Public Properties, #region Properties, #region Public Methods, etc.). After the upgrade to 6.1 this is not happening anymore. Is there any way of reenablig this? I found it to be very usefull.
I kept looking through the settings but I could not find it.
I also have the StyleCop for Resharper installed (like before the upgrade - I just got the new version).

Thank you,
Cristian

8 comments
Comment actions Permalink

Hello Cristian
     Please make sure that you're running Code Cleanup with a profile which has 'Reorder members' option turned on (under ReSharper | Options | Code Editing | Code Cleanup) and you're using the default profile under ReSharper | Options | Code Editing | C# | Type Member Layout. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Hi Andrey,
Thank you for your reply. The settings mentioned by you were already set like that but it is still not working.

I've performed an additional test and if the regions already exists it keeps them, but if they didn't exist the code cleanup does not create them. Any ideas?

Thanks,
Cristian

0
Comment actions Permalink

Hello Cristian
     Could you please attach screenshots of ReSharper | Options | Code Editing | Code Cleanup, C# | Type Member Layout options pages and a screenshot of Cleanup Code dialog? Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Hi Andrey,

Here are the snapshots requested. In the "code_cleanup.jpg" you can also see the result of the code cleanup in the back. The cleanup worked well except the regions the previous version was creating have not been created.

Thanks,
Cristian



Attachment(s):
code_cleanup.JPG
settings_2.JPG
settings_1.JPG
0
Comment actions Permalink

Hello Cristian
     Could you please check if running Code Cleanup with the Full Cleanup profile when StyleCop plug-in is turned off does create regions? Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Hi Andrey,
I've tried that and it is doing the same thing.

Thanks,
Cristian

0
Comment actions Permalink

Hi Andrey,
Here is an update on this problem. This morning when I came to work and started VS I got a notification saying that a new version of StyleCop had been released. I've installed it and received a notification that some R# rules are not compatible with StyleCop and asked me if I wanted to reset the R# rules. I reset them and after that the regions are being generated again :).

Thanks,
Cristian

0
Comment actions Permalink

Hello Cristian
     Great to know that! Please write back if you'll start experiencing this problem again. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.