Skip to content

Eclipse Plugin: Configure additional options #1417

Open

Description

@simartn

Is there a way to use run the formatter with --skip-reflowing-long-strings and --skip-javadoc-formatting in the eclipse plugin?

Activity

  1. florianlacreuse commented on Nov 9, 2026

    @florianlacreuse

    +1, and google-java-format 2.0.0 makes this more pressing.

    2.0.0 added a configurable maximum line length (--max-line-length on the CLI, JavaFormatterOptions.Style.Builder#maxLineLength(int) in the API), and other integrations already expose it:

    • IntelliJ plugin.
    • Spotless Maven plugin (3.11.0).

    The Eclipse plugin still has no settings: GoogleJavaFormatter passes JavaFormatterOptions.defaultOptions(), so it always formats at 100 columns. In a project that sets maxLineLength to 120 in its build, Eclipse users can't keep format-on-save enabled: the plugin
    wraps lines between 101 and 120 columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions