Bracket Reformatting (v1.5.x)

I've installed the latest version of Resharper 1.5.1, and cannot get the brackets to format properly. If I type in:

It will reformat it to:

In Options, I have set the braces layout to "At End of Line" for all three of the items, which should keep the formating consistent with the items above, but cannot get it to stick.

I'm actually recovering from a hard-drive failure and have copied previous specified options after re-installing. Is it possible I'm encounter some kind of issue that way?

Any suggestions?

2 comments
Comment actions Permalink

This should work.
Please check once more that you've set the "end-of-line" brace style.
And, set the "place "else" at new line" option to OFF

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Ian Johnstone" <no_mail@jetbrains.com> wrote in message
news:33489814.1134689078607.JavaMail.itn@is.intellij.net...

I've installed the latest version of Resharper 1.5.1, and cannot get the
brackets to format properly. If I type in:

    Do.Something( Cool );
>  } else {
>    Do.Something( NotCool );
>  }//if]]>

It will reformat it to:

  }
>    Do.Something( Cool );
>  }
>  else
>  {
>    Do.Something( NotCool );
>  }//if]]>

In Options, I have set the braces layout to "At End of Line"
for all three of the items, which should keep the formating consistent
with the items above, but cannot get it to stick.

>

I'm actually recovering from a hard-drive failure and have copied previous
specified options after re-installing. Is it possible I'm encounter some
kind of issue that way?

>

Any suggestions?



0
Comment actions Permalink

This didn't fix the problem I was having ... turns out the real problem has to do with Visual Studio reformating my code.

I reinstalled Visual Studio on a new hard-drive, and as a result reset all of the VS reformating mechanisms.

0

Please sign in to leave a comment.