Bug Report T1043480
Visible to All Users

Formatting - The ‘Wrap if long or multiline’ option incorrectly works in the ‘Type Parameters’ rule

created 3 years ago

Hi,

CodeRush formatting options have a where clause "Wrap if long or multiline". Whats the number of chars considered to be long?
E.g.
Clipboard-File-1.png
on saving gets reformatted to
Clipboard-File-2.png

CodeRush options:
Clipboard-File-3.png

TIA
Michael

Answers approved by DevExpress Support

created 3 years ago

We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

Note: Hotfixes may be unavailable for betas/updates set for release within a week.

    Comments (2)
    MW MW
    Michael Wittmer 3 years ago

      Thank you!

      DevExpress Support Team 3 years ago

        You are welcome.

        created 3 years ago

        Hi Michael,

        Thank you for contacting us and sharing the screenshot.

        A line is long if its length exceeds the right margin column size that is specified on the Editor | C# | Formatting | General option page. The default value of this option is 120 characters. Please refer to the following article for more information: How to: Wrap All Long Lines in Code.

          Comments (2)
          MW MW
          Michael Wittmer 3 years ago

            Thank you for the quick reply. Both right margin settings are set to 180 Characters. So why gets the type parameter wrapped (the whole class declaration as one liner ends at position 101)?

            DevExpress Support Team 3 years ago

              Thank you for your clarification.

              I reproduced this behavior with the wrong wrapping of type parameters. We are examining what causes it.

              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.