This extension provides a convenient way to format Java code using Google's Java Format standards.
- Open a Java file in Visual Studio Code
- Use the
Format Document
command - Enjoy your beautifully formatted Java code!
You can also set it as your default Java formatter in Visual Studio Code settings:
"[java]": {
"editor.defaultFormatter": "mmilic.java-google-format",
}
- Formats Java code according to Google's Java format standards using the Google Java Format tool. The current version of Google Java Format used is v1.23.0.
This extension requires a Java Development Kit (JDK) to be installed on your system.