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

Java format service

y1rn

|
11 installs
| (0) | Free
Java format service with google-java-format
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Java format service

Features

Startup as service with support of google-java-format plugin.

Requirements

redhat.java

Usage

Do following configuration on settings.json after install:

  "[java]": {
    //"editor.formatOnSave": true,
    "editor.defaultFormatter": "y1rn.java-format",
  },

Extension Settings

  • google-java-format.style: Enum string value [GOOGLE, AOSP]. The style name of google java format. Default is GOOGLE.
  • google-java-format.skipSortingImports: Boolean value. Whether to fix the import order, but unused imports will still be removed. Default is false.
  • google-java-format.skipRemovingUnusedImports: Boolean value. Whether to remove unused imports. Imports will still be sorted. Default is false.
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft