Is there a way to have an IDE fix Checkstyle errors automatically without having to fix each manually?
If you're using Eclipse, yes. You can't correct all problems though. There are two ways: