Disable insert region block on Reformat Code

When reformatting a class that implements an interface, the interface members are grouped together in a region block. Is there a way to stop this from happening. We would prefer not to have region blocks sneaking into our codebase.
-Derek

4 comments
Comment actions Permalink

To disable region insertion, you have to

1) do not reorder type members (uncheck correcponding checkbox in reformat
dialog)

either

2) edit "Member Reordering" pattern to remove enregion instructions from
there

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Derek Yang" <no_reply@jetbrains.com> wrote in message
news:30304701.1184653284883.JavaMail.itn@is.intellij.net...

When reformatting a class that implements an interface, the interface
members are grouped together in a region block. Is there a way to stop
this from happening. We would prefer not to have region blocks sneaking
into our codebase.
-Derek



0
Comment actions Permalink

Hi Eugene,

Thank you for your reply. Is this solution available for 2.5? I am using 2.5 and could not find where to change the member reordering pattern.

- Derek

0
Comment actions Permalink

Hello Derek,

ReSharper 2.5 doesn't group interfaces and doesn't have Organize Members
(official name) feature.
If you see that interfaces are wrapped, then you are probably using other
formatting feature, from VS or other plugin.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


DY> Hi Eugene,
DY>
DY> Thank you for your reply. Is this solution available for 2.5? I am
DY> using 2.5 and could not find where to change the member reordering
DY> pattern.
DY>
DY> - Derek
DY>


0
Comment actions Permalink

Thank you IIya for your answer. Appreciate it.

0

Please sign in to leave a comment.