How can I easily fix Checkstyle errors?
问题 Is there a way to have an IDE fix Checkstyle errors automatically without having to fix each manually? 回答1: If you're using Eclipse, yes. You can't correct all problems though. There are two ways: Right click on the java file in Package Explorer or whatever, and select 'Apply Checkstyle Corrections'. Click on the error in the problems view, and select 'Quick fix'. This corrects the problem. 回答2: If you are using IntelliJ, you can install the CheckStyle IDEA plugin. Then import the CheckStyle