Intellij doesn't auto format correctly

I have imported our custom code style.
It says for instance Right margin 156.

However, when I try to auto format my code, I can still have over 300 line on the right margin, so something is not correct.

I have attached two images illustrating my problem.

1 comment
Comment actions Permalink

Never mind, I see that i need to check the box "Wrap if right margin" checkbox


Please sign in to leave a comment.