Bug Report T370494
Visible to All Users

Organize Members - Line breaks behavior inside regions should be improved

created 9 years ago

[DevExpress Support Team: CLONED FROM T346361: CodeRush for Roslyn Code CleanUp issue]
How very cool you guys implemented my exact suggestion.  The improvements on 1.0.11 are very helpful.  On the new "line breaks" options I have a few concerns below.  Again my "Organize Members" options are setup to create a separate Region around each member type (ie. Fields, Properties, Methods…).

Settings:
Empty line count between groups = 1
Remove existing line breaks = Checked
Methods Region "Emply line count between members"=1
   Methods "Emply line count between members"=0

Issues:
-All but the first created region, in the class, start out with a line-break between the #region and the comment of the first encompassing member.  The preferred solution is no line-break anywhere, which is like #endregion.

-Both my "Methods" rule and surrounding "Method Region" have the option "Empty line count between members".  Since a Region rule can only contain 1 rule I guess both options are talking about the same spacing?  However only the "Method Region" option has any effect on spacing.   In my humble opinion a Region rule should be allowed to have multiple child rules in which case having "Empty line count between members" at both levels make sense.  In this case the options make sense, but still need to be fixed to do the right thing.

Thanks,

Comments (1)
AE AE
Alex Eg (DevExpress) 9 years ago

    Hi Kevin,
    Thank you for writing. I am passing your input to our R&D for consideration.

    Answers approved by DevExpress Support

    created 9 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.