RS4 Switch/case formatting

Hi

I cant seem to find the option to stop resharper moving the braces ( '{', '}') after a case statement to the next line. How can I fix it so that

switch (a)
case 1: {
}

remains with the braces next to the case statement instead of :
switch (a)
case 1:
{
}
as it does now on a "CleanupCode" ?

/Glenn

2 comments
Comment actions Permalink

Looks like this is controlled by "Other" braces category

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Glenn Spies" <no_reply@jetbrains.com> wrote in message
news:13834701.47281214410125843.JavaMail.jive@app4.labs.intellij.net...

Hi

>

I cant seem to find the option to stop resharper moving the braces ( '{',
'}') after a case statement to the next line. How can I fix it so that

>

switch (a)
case 1: {
}

>

remains with the braces next to the case statement instead of :
switch (a)
case 1:
{
}
as it does now on a "CleanupCode" ?

>

/Glenn



0
Comment actions Permalink

No, I have chosen the K&R style there (end of line), and everywhere to be honest. (would also be nice to change styles globally instead of in one place, but that is a feature request...)

/Glenn

0

Please sign in to leave a comment.