Hi,

For a long time IDEA has been ignoring indentation settings for static 
initializer sections � i.e.:

public MyClass
{
   static|

}

If you press RETURN at the cursor (shown here as |) IDEA will not put the 
cursor under the "s" of static, it will put it indented... i.e. with my 
settings:

public MyClass
{
   static
        |

}

This not what is desired at all. I am trying to create a static 
initializer section like:

public MyClass
{
   static
   {
       ...
   }

}

It should do what it does when you are typing a new method and press 
enter � the cursor should go to the next line, under the first character 
of your method declaration. Just a guess, but I think it is confused by 
the keyword and things you are entering a new field, so uses field 
formatting rules.

It's very annoying having to shift-tab after pressing return before 
writing the braces.

This problem has existed for a long time, and I am sure people have 
pointed it out before. It can't be that hard to fix surely?

Marc



_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to