I have the same problem. As far as I know, the rules used for reformatting cannot be imported from the Checkstyle configuration. You can configure the Checkstyle rules in the Idea code style configuration (File -> Settings -> Code Style) , and then reformat the code (Code -> Reformat Code [Ctrl+Alt+L]) according to the rules (you can apply it to the whole code base right away).
source share