[348] Braces Layout

In the 'Braces Layout' section in options, if I have the 'empty braces formatting' in the set to 'together on the same line' and 'method declaration' set to 'at next line', then Extract Method gives a new method with braces layout as if 'method declaration' were set to 'at end of line'.

I.e.

public void NewMethod() {
}

when I expect:

public void NewMethod()
{
}

Is this a bug?

Thanks

Sean

P.S. Love the new R# Powertoys :)

3 comments
Comment actions Permalink

I am also seeing this problem.

In the 'Braces Layout' section in options, if I have the 'empty braces
formatting' in the set to 'together on the same line' and 'method
declaration' set to 'at next line', then Extract Method gives a new
method with braces layout as if 'method declaration' were set to 'at
end of line'.

I.e.

public void NewMethod() {
}
when I expect:

public void NewMethod()
{
}
Is this a bug?

Thanks

Sean

P.S. Love the new R# Powertoys :)



0
Comment actions Permalink

This is definetely bug

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"sean kearon" <no_reply@jetbrains.com> wrote in message
news:18502763.1170951343390.JavaMail.itn@is.intellij.net...

In the 'Braces Layout' section in options, if I have the 'empty braces
formatting' in the set to 'together on the same line' and 'method
declaration' set to 'at next line', then Extract Method gives a new method
with braces layout as if 'method declaration' were set to 'at end of
line'.

>

I.e.

>

public void NewMethod() {
}

>

when I expect:

>

public void NewMethod()
{
}

>

Is this a bug?

>

Thanks

>

Sean

>

P.S. Love the new R# Powertoys :)



0
Comment actions Permalink

This is definetely bug


Thanks Eugene, look forward to a fix :)

Sean


0

Please sign in to leave a comment.