我希望 resharper 通过以下方式缩进我的代码:
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
);
但相反,它以以下方式格式化我的代码:
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
);
根据使用 Resharper 的自定义大括号格式,我已经尝试过该continuous line indent multiplier
选项,但它给出了错误的结果......