Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>google-java-format-serviceNew to Visual Studio Code? Get it now.
google-java-format-service

google-java-format-service

EricPai

|
1,737 installs
| (0) | Free
A faster Java formatter than those launching JVM everytime
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

google-java-format-service README

Features

A faster and fully support of google-java-format plugin.

Why service

In traditional implemention, JVM launching happens after .java files are saved. Launching JVM is a heavy and slow process during coding in VSCode.

Use a HTTP service to format code will gen a better experience than using JAR directly.

Requirements

  • Java >= 11
  • google-java-format-serivice is installed and running.

Extension Settings

  • gjfs.address: The endpoint of google-java-format-service. Default is localhost:8030.
  • gjfs.style: Enum string value [GOOGLE, AOSP]. The style name of google java format. Default is GOOGLE.
  • gjfs.skipSortingImports: Boolean value. Whether to fix the import order, but unused imports will still be removed. Default is true.
  • gjfs.skipRemovingUnusedImports: Boolean value. Whether to remove unused imports. Imports will still be sorted. Default is false.

To use this formatter as default one for java, do the following steps:

  1. Open any .java files in your workspace.
  2. Press F1, search Formatter Document.
  3. Set google-java-format-service as the default Java foramtter tool.

Known Issues

Release Notes

v1.0.0

First release.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft