Anyone knows if there is an Eclipse plugin that can format the code according to the Checkstyle rules? The Eclipse plugin that I have now can only generate a report for the list of violations. Thanks in advance.
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
Yes, that plugin is the one that I use. It can tell all the violations of Checkstyle rule, but it's unable to format it according to Checkstyle rule. I guess I need to do what David said. Create a formatter that formats according to Checkstyle rule.
I turn off the formatting checks in CheckStyle and use the Eclipse formatting to determine what the formatting should be. Then I don't have to worry about setting them both to the same thing.
I constantly CTRL-SHIFT-F to reformat. I am ambivalent on the reformat-on-save option, I have some intricately formatted comments, or code/comment combinations, that I don't want touched - sure wish there was as tag, such as <pre> that I could use to tell the Eclipse formatter to not reformat a certain section fo a file - that I would turn on reformat-on-save.