Tailoring IDEA Java Code formatter


I'd like to have a Java Code formatter "tailored" beyond standard IDEA settings, e.g. wrap always 3+ parameters, custom format of chained calls etc. My idea is to run my formatter just after the standard one, not to replace standard rules (run both as one step from user's point of view). 

I’ve created a few working EditorWriteActionHandlers and I’m able to run them as Actions from menu or by shortcut. But I have no idea how to run my code just after standard Java formatter. I tried some ways found in forum but not successful. Could you please advise how to do it?

Thank you, 

1 comment
Yaroslav Lepenkin
Comment actions Permalink

Hi, you can provide additional PostFormatProcessor extension for that.


Please sign in to leave a comment.