How fix all check style issues with Intellij Idea?

前端 未结 2 1691
日久生厌
日久生厌 2021-02-13 10:30

I have an xml configuration file for maven checkstyle plugin. I have installed Intellij Idea plugin and see all checkstyle violation. Is there a way to fix most of them automati

2条回答
  •  一整个雨季
    2021-02-13 10:48

    I have the same problem. As far as I know, the rules used for reformatting cannot be imported from Checkstyle config. You can configure your Checkstyle rules in the Idea's Code Style config (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 at once).

提交回复
热议问题