Hello
If I use the function Clean document with wrapping (if too long) for Expression bodies it wraps also shortere terms.
Please find a sample in the attached video.
Regards
Joerg
Hello
If I use the function Clean document with wrapping (if too long) for Expression bodies it wraps also shortere terms.
Please find a sample in the attached video.
Regards
Joerg
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.
Hello
It seems that wrap if long or multiline does not work correctly. I have the same behavior for "base list" and "Property \ Indexer \ Event"
Hi Joerg,
Thank you for the screencast. We already faced with the problem during our internal testing and fixed it. We have prepared a special build with the fix. Could you please install the build, try to reproduce the problem and provide us with your results?
Note: The fix was made for members Methods\Property\Indexer\Events, thus could you clarify what you mean by " about same behavior for "base list" "with help new screencast?
Hi Dmitry
It seems the issue for "Expression bodies" and "Wrap if long or multiline" is fixed, The issue for "Base list" has occured again. If I try "Propertiy \ Indexer \ Event", there are a issue with filled setters.
Please find the problems in the attached video.
Joerg,
Thank you for the detailed screencast.
As far as I can see, the screencast shows two problems.
I have created separate tickets on your behalf for both the problems, and we will process the issues in these new tickets:
1. Formatting - The "Base List->Wrap if long" rule incorrectly works for identifiers with a short name
2. Formatting - The "Property\Indexer\Event->Wrap if long" rule incorrectly formats setter code
Hi
Not used VS/coderush for a few weeks and just updated them, I appear to have similar issues as above, but I'm also having it with:
Formatting - the "Accessor -> wrap if log" rule. The code before formatting looks like this:
public string PartDescription { get { string description = PartDescription3.Trim(); if (string.IsNullOrEmpty(description)) { description = PartDescription1.Trim(); if (!string.IsNullOrEmpty(PartDescription2.Trim())) { description += $" {PartDescription2.Trim()}"; } } return description ?? string.Empty; } }
After formatting, it appears to be all on one line:
public string PartDescription { get { string description = PartDescription3.Trim(); if (string.IsNullOrEmpty(description)) { description = PartDescription1.Trim(); if (!string.IsNullOrEmpty(PartDescription2.Trim())) { description += $" {PartDescription2.Trim()}"; } } return description ?? string.Empty; } }
Hopefully the fix to the above two formatting issues reported by Joerg will also fix this issue with Accessor. I'll try the hotfix when it comes out and see.
Hi Alan,
Thank you for the code snippets.
We already faced the same problem and fixed it. You can download the CodeRush build containing the fix by the following link - DevExpress.CodeRush-18.1.vsix.
Hi Dmitry
Excellent, thanks - I'll download that now and test. :)
You are welcome.