Prefer wrap before operator in binary expression does not work

Howdy

I am using ReSharper Ultimate 2017.1.1 with VS 2017.

I have Prefer wrap before operator in binary expression unticked and Wrap chained binary expressions is set to Simple wrap.

This results in the following code:

if (ItemEvents.List.Count(
    ie => ie.ItemEventTypeID.Value == (int)ItemEventType.ListedOnline
        || ie.ItemEventTypeID.Value == (int)ItemEventType.AutomaticallyRelisted) <= 4)

Note the || symbol appears on the wrapped line instead of the line above.

Interestingly, if i manually change it to be on the line above, ReSharper changes it again even though I have Preserve Existing Formatting --> Keep existing line breaks ticked.

Cheers
Craig

0
3 comments
Avatar
Permanently deleted user

I can probably cope if ReSharper would just honour it's Preserve and Keep settings (Keep existing line breaks setting doesn't work either).

0

Hello Craig!

 

Sorry for delay in responding.

Could you please let us know if the problem is still actual? Keep existing line breaks works as intended, also I cannot reproduce problem with wrapping line in binary expression.

Thank you.

 

0
Avatar
Permanently deleted user

Hello,

I am having a similar issue. I found out that if you have some lambda expression with line wrapped after an arrow then Resharper after cleanup makes it a single-line despite that "Keep existing line breaks" is ticked. Is there a way to preserve those line breaks?

 

Regards

Olegas

0

Please sign in to leave a comment.