How can I easily fix Checkstyle errors?

前端 未结 6 2308
失恋的感觉
失恋的感觉 2020-12-14 16:40

Is there a way to have an IDE fix Checkstyle errors automatically without having to fix each manually?

6条回答
  •  爱一瞬间的悲伤
    2020-12-14 17:15

    If you are using IntelliJ, you can install the CheckStyle IDEA plugin.

    Then import the CheckStyle settings into the editor, and Reformat like normal (Ctrl+Alt+L is default shortcut key).

提交回复
热议问题