resharper formatting question

below is one of the formating currently in my vs.net 2010 with resharper 6.1

ProductItem product = new ProductItem
                                          {
                                                 Name = "ABC",
                                                  Price = 10.4,
                                          };



if the class name is long, it is leaving too much of space at the left of the initializer, how can I set it to format like below?

Thanks.
3 comments
Comment actions Permalink

Hello
     Try turning off the 'Indent array/object/collection initializer' option under ReSharper | Options | Languages | C# | Code Style | Other. Let me know if this helps. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Andrey, this worked fine. Thanks.

Is there a complete document for explaining all the settings? there are load of settings in resharper :)

0
Comment actions Permalink

Hello
     There's a help topic describing these sections: http://www.jetbrains.com/resharper/webhelp/Reference__Options__Languages__CSharp__Formatting_Style.html. However, it doesn't contain explanation for each code style option because they are pretty self-explanatory. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.