I would like resharper to backtrack my code as follows:
var modification = shortUrlIndexCollection.FindAndModify ( Query.Or ( Query.And ( Query.EQ("_id", "Index"), Query.EQ("LockId", Guid.Empty) ), Query.LT("UnlockOn", now) ), SortBy .Null, Update .Set("LockId", guid) .Set("UnlockOn", now + reserveDuration), true );
But instead, it formats my code as follows:
var modification = shortUrlIndexCollection.FindAndModify ( Query.Or ( Query.And ( Query.EQ("_id", "Index"), Query.EQ("LockId", Guid.Empty) ), Query.LT("UnlockOn", now) ), SortBy .Null, Update .Set("LockId", guid) .Set("UnlockOn", now + reserveDuration), true );
According to formatting a custom bracket using Resharper I already tried the continuous line indent multiplier parameter, but it gives incorrect results ...
c # resharper
Lu4
source share