How can I easily fix Checkstyle errors?

前端 未结 6 2304
失恋的感觉
失恋的感觉 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:37

    Your question is rather vague, but I think what you're asking is if CheckStyle can automatically reformat code that it's checking to fix code layout problems that it finds.

    The direct answer here is "no."

    However, there are a number of "Java source code formatters" (google that, choose one) that will do what I believe you're asking for.

提交回复
热议问题