java_format
This script will format the *.java
files in the given directory ($PWD
if not given) and its subdirectories according to the Google Java Style.
Both |
This script needs internet access if it does not find the cached JAR file. It will download and cache the google-java-format JAR. The JAR is cached in the following location (in order of preference):
|
If you are using Gradle or Maven you might want to use Spotless instead of this script:
If you are using a JetBrains IDE you might want to use the google-java-format plugin. |