Insert/generate does not respect blank lines before comments

hello, I have a file looking like this:

public class Foo {
// ***
// mycomment 1
// ***
XXX
// ***
// mycomment 2
// ***
}

cursor is where it says XXX. now when I insert a constructor or generate getters/setters or something like that, the result will be

public class Foo {
// ***
// mycomment 1
// ***

public Foo() {
}// ***
// mycomment 2
// ***
}

I remember in older versions it was formatted like:

public class Foo {
// ***
// mycomment 1
// ***

public Foo() {
}
// ***
// mycomment 2
// ***
}

Is this a bug? Or are there new options to be re-configured? Happens to be in Demetra 5245.

Thanks.

1 comment
Comment actions Permalink

Hello Michael,

Looks like a bug. Would you please attach your code style scheme to the issue
when filing JIRA request.

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

hello, I have a file looking like this:

public class Foo {
// ***
// mycomment 1
// ***
XXX
// ***
// mycomment 2
// ***
}
cursor is where it says XXX. now when I insert a constructor or
generate getters/setters or something like that, the result will be

public class Foo {
// ***
// mycomment 1
// ***
public Foo() {
}// ***
// mycomment 2
// ***
}
I remember in older versions it was formatted like:

public class Foo {
// ***
// mycomment 1
// ***
public Foo() {
}
// ***
// mycomment 2
// ***
}
Is this a bug? Or are there new options to be re-configured? Happens
to be in Demetra 5245.

Thanks.



0

Please sign in to leave a comment.