For some strange reason when I have nested object intializers it always gets the last '}' wrong when doing "cleanup code" in resharper 5. It is not indented at all as shown in the following example:
namespace MyNameSpace
{
internal static class MyClass
{
static MyClass()
{
var bla = new Bla { Name = "Bla" };
bla.Blub = new Blub
{
Name = "Blub",
Blap = new Blap { Name = "Blap", Visible = true },
Blob = new Blob { Name = "Blob" },
Blib = new Blib
{
Blep = new Heater { Name = "Bleb" },
Id = 1,
Blap = new Blap { Name = "Blap" }
} // <---- wrong !!!
};
}
}
}
Any idea what I can do against it ? Obviously there must be some setting that affects this. I just can't find it.