[Reformat Code] Undesired linebreak in if statement

Hello,

I have the following code block:
if (!EventDataGateway.Instance.OptimisticLockingCheck(_Event.OwnerCache.DataSet, _Event.UID, PublicationService.Instance.OfflineGroup)) {
     throw new OptimisticLockingException();
}

When I use Reformat Code, (with Right margin (columns set to 120) and Chop if long enabled) ReSharper formats like this:

if  (
     !EventDataGateway.Instance.OptimisticLockingCheck(_Event.OwnerCache.DataSet,  _Event.UID,
                                                                                    PublicationService.Instance.OfflineGroup)) {
     throw new OptimisticLockingException();
}

I wish to have the following result:

if  (!EventDataGateway.Instance.OptimisticLockingCheck(_Event.OwnerCache.DataSet,  _Event.UID,
                                                                                  PublicationService.Instance.OfflineGroup)) {
     throw new OptimisticLockingException();
}

Any ideas what option should be set to get this result ?

Thanks,
Yann

Please sign in to leave a comment.