GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — IntelliJ plugin setting to skip reflowing long string literals · Issue #146 · openjavaformat/open-java-format

IntelliJ plugin setting to skip reflowing long string literals #146

New issue
Copy link
New issue
Copy link
Open
Open
IntelliJ plugin setting to skip reflowing long string literals#146
Copy link
Labels
enhancementNew feature or requestNew feature or request

Description

@abashev
abashev
opened on Oct 23, 2026
Issue body actions

Upstream: palantir#1462
Kind: feature | Priority: low

palantir-java-format#1462 (open since November 2025, still unmerged; the last comment on 2026-10-21 says users build their own plugin from the branch) adds a checkbox to the IntelliJ plugin settings so the existing "skip reflowing long strings" formatter option can be switched on from the IDE. The settings value is passed into the formatter through the options object and added to the formatter cache key, so changing the checkbox rebuilds the formatter. The author notes it only takes effect on Java 15+ because older JVMs instantiate the formatter in-process.

Why it matters to us: our core formatter has the behaviour, but only on the command line (--skip-reflowing-long-strings, handled in CommandLineOptionsParser and FormatFileCallable, which re-flow long string literals unless it is set). Our JavaFormatterOptions in the SPI module has only style and formatJavadoc, so IDE users cannot turn the behaviour off at all. The upstream diff therefore does not apply cleanly: it relies on a skipReflowingLongStrings builder option and on formatter-service constructors that take options, neither of which exists in our tree.

Affected files in our repo: open-java-format-spi/src/main/java/com/palantir/javaformat/java/JavaFormatterOptions.java, open-java-format/src/main/java/com/palantir/javaformat/java/FormatFileCallable.java, open-java-format-idea-plugin/src/main/java/com/palantir/javaformat/intellij/FormatterProvider.java, open-java-format-idea-plugin/src/main/java/com/palantir/javaformat/intellij/PalantirJavaFormatConfigurable.java (and the Gradle and native plugins if we want the option there too).

Examples: not available - the item and its diff only wire a setting through the UI and contain no formatter input or output.

Suggested action: adopt-the-idea. Add the option to the SPI options and the IDEA settings page ourselves, reusing the cache-key approach, rather than waiting for upstream. Low priority because the CLI flag already covers build-time use.


Filed from an upstream-watch ticket after manual review.

Activity

  1. abashev
    added
    enhancementNew feature or requestNew feature or request
    on Oct 30, 2026
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

    enhancementNew feature or requestNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.