You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+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.
Activity
florianlacreuse commentedon Nov 9, 2026
+1, and google-java-format 2.0.0 makes this more pressing.
2.0.0 added a configurable maximum line length (
--max-line-lengthon the CLI,JavaFormatterOptions.Style.Builder#maxLineLength(int)in the API), and other integrations already expose it:The Eclipse plugin still has no settings:
GoogleJavaFormatterpassesJavaFormatterOptions.defaultOptions(), so it always formats at 100 columns. In a project that setsmaxLineLengthto 120 in its build, Eclipse users can't keep format-on-save enabled: the pluginwraps lines between 101 and 120 columns.