Formatting question.

Hello community,

Resharper has a nice code formatter with tons of options, I would like to ask pro's advice. I have the following code:

variable = obj.Method(
                    var1,
                    somebool1 &&
                    somebool2 &&
                    somebool3);


As you can see the statement is chopped and aligned fine, but it would be more logical to align it like:

variable = obj.Method(
                     var1,
                     somebool1 &&
                               somebool2 &&
                              somebool3
);


I tried several options in Resharper formatter, but couldn't make it align like that. Does anybody know how to do this?

This fomatting rule should also produce something like:

variable = obj.Method(
                     var1,
                     somebool1 &&
                               somebool2 &&
                              somebool3,

                    var2,
                    somebool4 &&
                               somebool5 &&
                              somebool6
);


Thanks.

1 comment
Comment actions Permalink

net_prog wrote:

Hello community,

Resharper has a nice code formatter with tons of options, I would
like to ask pro's advice. I have the following code:

*variable = obj.Method(
                    var1,
                    somebool1 &&
                    somebool2 &&
                    somebool3);*

As you can see the statement is chopped and aligned fine, but it
would be more logical to align it like:

*variable = obj.Method(
                     var1,
                     somebool1 &&
                         somebool2 &&
                         somebool3);*

I tried several options in Resharper formatter, but couldn't make it
align like that. Does anybody know how to do this?

Thanks.

---
Original message url:
http://www.jetbrains.net/devnet/message/5244559#5244559


Some for me.

--

0

Please sign in to leave a comment.