Is code formatting working for everyone else?
I've been having a problem where I haven't been able to use the code formatter to format code properly. Its something new introduced in the EAP. Things that I want to just be "next line" are coming in "next line shifted" and I've found no way to correct it. I recently installed the EAP (3193) on a brand new machine (thought previously that maybe it was some old settings), but nope - the EAP insists on formatting some things incorrectly.
请先登录再写评论。
Gregory Pierce wrote:
Its does for me
Oded
Known bug in eap.
Gregory Pierce wrote:
--
"A man's ethical behavior should be based effectually on sympathy,
education, and social ties and needs; no religious basis is necessary.
Man would indeed be in a poor way if he had to be restrained by fear of
punishment and hope of reward after death."
[Albert Einstein, "Religion and Science", New York Times Magazine, 9
November 1930]
There was a post saying that "code formatting" code has been rewritten in
hte EAP.
Post bugs in the tracker.
Vote for it:
http://www.intellij.net/tracker/idea/viewSCR?publicId=41556
I've just tried it on Build 3200.
Initially it seemed to work, the braces are placed where
I want them to and I almost breathed a sigh of relief...
That was too soon, though:
Java doc is now reformatted wrongly. It seems that the
first is placed correctly, but all subsequent lines are
using the indent value set for code lines (so thery're
4 spaces in more than they should be and the '*' are not
aligned.)
Also, in one case, a file which was otherwise formatted
correctly, had a try line indented one level too many.
And, at least in my installation, I cannot open the Global
Code Style or the Project Code Style dialogs -
I get an exception straight away,
while waiting for the settings to load (an NPE attempting
to read the settings file, I think).
I've now voted on Marcus Brito lodged issue on the matter.
I'm so used to using the reformatting capabilities in
IDEA that these bugs really drive me crazy.
Cheers,
Bonny