- Format Java files with no configuration necessary
- Specify a Prettier config file to use if desired
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.
- Add support for relative and workspace-relative config paths
- Update logo to follow VSCode guidelines
- Upgrade dependencies
- Initial release