Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.56 KB

File metadata and controls

65 lines (43 loc) · 1.56 KB


Prettier Java Plugin Logo
Prettier Java Plugin

Format Java files with Prettier using prettier-plugin-java. No configuration necessary.

Features

  • Format Java files with no configuration necessary
  • Specify a Prettier config file to use if desired

Extension Settings

To set this formatter as the default formatter for Java files, add the following to your VSCode settings:

"[java]": {
  "editor.defaultFormatter": "RudraPatel.prettier-plugin-java-vscode"
}

This extension contributes the following settings:

  • prettier-plugin-java-vscode.enabled: Enable/disable the plugin.
  • prettier-plugin-java-vscode.prettierConfigPath: Provide an absolute, relative, or workspace-relative path to a Prettier config file. If not provided or missing, the extension will attempt to resolve the config file from the document file name.

Examples of valid config paths include:

  • An absolute path: /home/user/my-project/.prettierrc
  • A relative path .prettierrc
  • A workspace-relative path ${workspaceFolder}/.prettierrc

The Output channel will display information about how this config file path is resolved.

Release Notes

1.0.4

  • Upgrade dependencies

1.0.3

  • Add support for relative and workspace-relative config paths

1.0.2

  • Update logo to follow VSCode guidelines

1.0.1

  • Upgrade dependencies

1.0.0

  • Initial release