Running Source Code Formatter from the command line?

Is it possible to run the source code formatter that IDEA uses from the command line? We would like to integrate it either into the source control systems so that we ensure people have formatted code prior to committing to the repository. Is this possible?

1 comment
Comment actions Permalink

Hi Peter,

There is no such feature out of the box, however, you can extract desired functionality rather easy because formatter code belongs to IDEA Community Edition and is open sourced.

Regards, Denis

0

Please sign in to leave a comment.