Additional formatter for Apex language


I am developing an additional plugin for Apex language. So far I created a few inspections and those are working fine. Now I'd like to add a formatter. The formatter will add an empty line after the specific line of code. For example, the empty line should be added after logger.log(...) statement below. 


I repeated the steps from But when I try to debug the formatter no one breakpoint of the formatter code is stopped after I run "Reformat Code" in the IDE.

This is my FormattingModelBuilder:

 This is the Block:

And this is the extension point xml:

What did I miss? How to make the formatter code run?

1 comment
Comment actions Permalink

Sorry for delay. Is there maybe another formatter registered for language "Apex"? Try adding


to your declaration.


Please sign in to leave a comment.