Eclipse code formatter multiline function call closing bracket indention -


currently eclipse formatter formats multiline function call this:

someobject.dosomething(   some().long().chain().of().methods()   ); 

but want eclipse align closing bracket method call:

someobject.dosomething(   some().long().chain().of().methods() ); 

i have tried playing around new line , wrapping rules in code formatter haven't been able achieve this. solution?


after time of digging found similar question has accepted answer seems not answer same question: can eclipse formatter configured indent multiple lines between parenthesis properly?

the author of question states:

edit: found settings "line wrapping" -> "default indentation wrapped lines" , "default indentation array initializes" , have set them "1" instead of "0". better array initializers, but still doesn't indent closing parethesis match opening parenthesis way want to:


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -