Formatter issue
A small question: I see this issue http://www.jetbrains.net/jira/browse/GRVY-1451 has been resolved, but in which build is it resolved? I'm using version 1.5.16466, but the bug is still there.
Thanks,
Erik
请先登录再写评论。
A small question: I see this issue http://www.jetbrains.net/jira/browse/GRVY-1451 has been resolved, but in which build is it resolved? I'm using version 1.5.16466, but the bug is still there.
Thanks,
Erik
请先登录再写评论。
Erik,
Please, look at your value of blank lines number after class header in IDEA code style settings ('Blank Lines' tab, section 'Blank lines'). If I understand right your issue, it seems that in your case this value equals zero. That's why in your example first line of code can be put on next line after class header or not. But as I see, example in http://www.jetbrains.net/jira/browse/GRVY-1451 is incorrect because of lost statement separator.
But if we reproducer java-like behavior, you're right, it would be better ot insert new line in that case by default.
Thanks. we'll change it.
Hi Ilya,
I don't quite understand what the statement separator is, but if you can fix it, it would be great. The JIRA issue formatted wrong btw, Jira is stripping some of the CRLF's...
The code I have looks like this:
will be reformatted to :
I have indeed the header setting to 0, but I have that in Java too, and I don't want to change tha, because I don't want an empty line under the class header: I just don't want it appended to the end of the line. Do you need to reopen the issue, or do I have to add a new one with the same info (doesn't sound logical to me)?
There is no need for this, I've already fixed it. Thanks.
Great work, thanks!