Intellij IDEA: can I customize the code style to put the dot operator on the previous line?

I am using Intellij IDEA 14.1.4 formatting simple Java code.

IDEA does it:

  super.getFoo()
    .foo()
    .getBar()
    .bar();

      

I want him to do this:

super.getFoo().
  foo().
  getBar().
  bar();

      

Does anyone know how to do this?

+3


source to share


1 answer


There is no setting for this. But there is a feature request to add this: IDEA-123881 Code formatting: object chain wrapper - setting point position at Java statement points . I recommend that you vote for this and watch it.



+4


source







All Articles