Title: IntelliJ plugin setting to skip reflowing long string literals · Issue #146 · openjavaformat/open-java-format · GitHub
Open Graph Title: IntelliJ plugin setting to skip reflowing long string literals · Issue #146 · openjavaformat/open-java-format
X Title: IntelliJ plugin setting to skip reflowing long string literals · Issue #146 · openjavaformat/open-java-format
Description: 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 ...
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/openjavaformat/open-java-format/issues/146
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IntelliJ plugin setting to skip reflowing long string literals","articleBody":"**Upstream:** https://github.com/palantir/palantir-java-format/pull/1462 \n**Kind:** feature | **Priority:** low\n\n[palantir-java-format#1462](https://github.com/palantir/palantir-java-format/pull/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.\n\nWhy 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.\n\nAffected 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).\n\nExamples: not available - the item and its diff only wire a setting through the UI and contain no formatter input or output.\n\nSuggested 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.\n\n---\n_Filed from an upstream-watch ticket after manual review._","author":{"url":"https://github.com/abashev","@type":"Person","name":"abashev"},"datePublished":"2026-10-23T18:42:26Z","url":"https://github.com/openjavaformat/open-java-format/issues/146"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dcfeafa4-0012-4c2a-139c-4fd75b24df04 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D744:3A7F2:282BD7:35EA4D:6AFBB793 |
| html-safe-nonce | dcdf43f1564a815cd087377d7261589232f49632f61ca4447786b001c7bd107b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzQ0OjNBN0YyOjI4MkJENzozNUVBNEQ6NkFGQkI3OTMiLCJ2aXNpdG9yX2lkIjoiNTA1NDEwNTExNjcwOTk5MjMzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 224fef10102f40b73df90fccb43b087bb1370212e3ccd7bc104a80bfdf16e2d4 |
| hovercard-subject-tag | issue:6003546534 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/openjavaformat/open-java-format/146/issue_layout |
| twitter:image | https://opengraph.githubassets.com/462997a9411106bfa7f7843e8196447df1bb6e6df4e5203f29911ef8f216a911/openjavaformat/open-java-format/issues/146 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/462997a9411106bfa7f7843e8196447df1bb6e6df4e5203f29911ef8f216a911/openjavaformat/open-java-format/issues/146 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abashev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/openjavaformat/open-java-format git https://github.com/openjavaformat/open-java-format.git |
| octolytics-dimension-user_id | 325177626 |
| octolytics-dimension-user_login | openjavaformat |
| octolytics-dimension-repository_id | 1288055459 |
| octolytics-dimension-repository_nwo | openjavaformat/open-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 214273098 |
| octolytics-dimension-repository_parent_nwo | palantir/palantir-java-format |
| octolytics-dimension-repository_network_root_id | 214273098 |
| octolytics-dimension-repository_network_root_nwo | palantir/palantir-java-format |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width