IJ: Make formating intelligent to break after the method brackets

Answered

Is there a possibility to configure the java formater in a more intelligent way to break longer lines on more meaningfull points in the line like after the methods brackets?

 

So instead of getting this:

        filter = FirstDelTemplateFilterProvider.getOneOfManyTemplatesIo(abcd, abcd, false, abcdefabcdef, abcdefabcd.AB,
                abc);

Getting this:
        filter = FirstDelTemplateFilterProvider
                .getOneOfManyTemplatesIo(abcd, abcd, false, abcdefabcdef, abcdefabcd.AB, abc);

 

 

 

0
2 comments

The is an option for Chained method calls under the File | Settings | Editor | Code Style | Java | Wrapping and Braces, but it will not wrap is there is a single call. I see a related request: https://youtrack.jetbrains.com/issue/IDEA-136309.

For this case enabling wrapping for File | Settings | Editor | Code Style | Java | Wrapping and Braces | Assignment statement should produce the desired result.

0
Avatar
Permanently deleted user

@Andrey: That (your link) seems to be actually what I'm looking for!

Unfortunately now progress on that since long time.
The current possibilities seems to be not as beneficial as that would be.

0

Please sign in to leave a comment.