Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Google Java Format for VS CodeNew to Visual Studio Code? Get it now.

Google Java Format for VS Code

Jose V Sebastian

|
320 installs
| (0) | Free
Visual Studio Code extension to format Java files using google-java-format program to comply with Google Java Style.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

google-java-format-for-vs-code README

Format your java files using Google Java Format program which follows Google Java Style (or AOSP).

Extension Settings

This extension contributes the following settings:

  • java.format.settings.google.executable: Specifies url or file path to Google Java Format jar executable.
  • java.format.settings.google.version: Specifies version to be used of Google Java Format jar executable. Default: 1.15.0. Overridden by java.format.settings.google.executable.
  • java.format.settings.google.extra: Extra CLI arguments to pass to Google Java Format.

Please refer Google Java Format repository for available versions and CLI arguments.

Release Notes

0.1.0

Initial release of Google Java Format for VS Code.

Run Google Java Format jar to format java files.

Auto-download executable jar from either url or full version string.

Add extra CLI arguments to Google Java Format call using extension setting.


Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft