The AStyle plugin is a code beautifier for Java, C, and C++.