Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Google Java FormatterNew to Visual Studio Code? Get it now.
Google Java Formatter

Google Java Formatter

Liangcheng Juves

|
5,665 installs
| (0) | Free
Reformats Java source code to comply with Google Java Style for VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-gjf

Google Java Format for VS Code

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • vscode-gjf.execJarPath: Path of google-java-format-<version>-all-deps.jar file for unix like system
"vscode-gjf.execJarPath": "/path/to/google-java-format-1.7-all-deps.jar"
  • vscode-gjf.win32ExecJarPath: Path of google-java-format-<version>-all-deps.jar file for Windows system
"vscode-gjf.win32ExecJarPath": "C:\\path\\to\\google-java-format-1.7-all-deps.jar"
  • vscode-gjf.useAOSPStyle: Use AOSP style instead of Google Style
"vscode-gjf.useAOSPStyle": true
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft