gpt4 book ai didi

数组初始值设定项中的 C# 源代码格式化

转载 作者:太空狗 更新时间:2023-10-29 20:29:05 26 4
gpt4 key购买 nike

是否可以在 VS.NET 2010 中的数组初始值设定项中启用 C# 源代码格式化?

Elements =
{
// starting from here source code formatting does not work
new TextViewModel("PublicId")
{
Label = new LText("Fund Nr:", "de", "Fondsnummer"),
Watermark = new LText("Please enter fund number...", "de", "Bitte hier Fondsnummer erfassen...")
},
new CheckViewModel("Juristic")
{
Style = "Radio",
Default = true,
Label = new LText("Juristic Fund", "de", "Juristischer Fonds")
}
}
// starting from here source code formatting works again

我是否在“工具”->“选项”->“文本编辑器”->“C#”中遗漏了一些格式化选项?

最佳答案

connect.microsoft 处是“不会修复” .

但是,正如微软在那里发布的那样:

If others, find that this is an important feature, please keep voting it up.

请注意这仅适用于多行 初始化器。

关于数组初始值设定项中的 C# 源代码格式化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4278613/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com