提问人:Charles Burns 提问时间:9/30/2023 更新时间:10/2/2023 访问量:37
如何阻止 ReSharper/Rider 执行此操作:“}, {”
How do I stop ReSharper/Rider from doing this: "}, {"
问:
如何防止骑手在初始化的切碎元素之间生成?
我看了一下,但我可能错过了什么。这种略显怪异的建筑肯定不是强加给我们的吗?}, {
Editor --> Code Style --> Braces Layout/Line Breaks and Wrapping
Rider 的功能:
Dictionary<string, string[]> rider = new() {
{
"first", new[] {
"a", "b", "c",
"d", "e", "f"
}
}, { // <-- Not desired
"first", new[] {
"a", "b", "c",
"d", "e", "f"
}
};
首选:
Dictionary<string, string[]> rider = new() {
{
"first", new[] {
"a", "b", "c",
"d", "e", "f"
}
},
{ // <-- Want this
"first", new[] {
"a", "b", "c",
"d", "e", "f"
}
};
评论