Download the formatter and run it with: To reformat changed lines in a specific patch, use google-java-format-diff.py. Note: There is no configurability as to the formatter's algorithm for formatting.
If you prefer a visual guide, Dan Suzuki has a Youtube video showing of the app. After installing Resize Raccoon, you can create custom profiles for your applications ...