Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Alexey Kudravtsev
Subsystem
Code Formatting and Code Style
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Bjørn T Johansen
    2 years ago (15 Sep 2009 00:48)
  • Updated by   root
    2 years ago (17 Jan 2010 21:19)
  • Jira: IDEA-24645
    (history, comments)
 
IDEA-24645 Curly brackets not aligned correctly according for code fomatting config....
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
When I write an if statement and press enter, the code is not formatted correctly

If I write "if (i == 0)" and pressing enter, and typing curly bracket and enter gives me this code..:

if (i == 0)
{

}

which is not what I have configured IDEA to do... Pressing Ctrl-Alt-L (Reformat code) and letting IDEA reformat my code, produces this code:

if (i == 0)
{

}

which is correct, according to my config....


This happends in build 10666 and 10762 (as far as I have tested...)

Environment: Linux, JDK 1.6.0_16
Comments (1)
 
History
 
Linked Issues (?)
 
Bjørn T Johansen
  Bjørn T Johansen
30 Oct 2009 17:28
2 years ago
This is still not fixed? I really hope you are not going to release Maia wihtout fixing this!? This is really a show stopper for upgrading to Maia! This is not developing with pleasure....