Is it possible to enable C# source code formatting inside array initializers in VS.NET 2010?
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
Am I missing some formatting option in Tools->Options->Text Editor->C#?
It's a "Won't fix" at connect.microsoft.
But, as posted there by Microsoft:
If others, find that this is an important feature, please keep voting it up.
Note that this is only for multi-line initializers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With