Title: Support using tabs for indentation (--use-tabs flag) · Issue #1470 · google/google-java-format · GitHub
Open Graph Title: Support using tabs for indentation (--use-tabs flag) · Issue #1470 · google/google-java-format
X Title: Support using tabs for indentation (--use-tabs flag) · Issue #1470 · google/google-java-format
Description: Support for configuring tabs was added to the API in #1320, but there is not currently a CLI flag for it. In general google-java-format remains committed to being an opinionated, low-configuration formatter (#425 (comment)). Line lengths...
Open Graph Description: Support for configuring tabs was added to the API in #1320, but there is not currently a CLI flag for it. In general google-java-format remains committed to being an opinionated, low-configuration ...
X Description: Support for configuring tabs was added to the API in #1320, but there is not currently a CLI flag for it. In general google-java-format remains committed to being an opinionated, low-configuration ...
Opengraph URL: https://github.com/google/google-java-format/issues/1470
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support using tabs for indentation (--use-tabs flag)","articleBody":"Support for configuring tabs was added to the API in #1320, but there is not currently a CLI flag for it.\n\nIn general google-java-format remains committed to being an opinionated, low-configuration formatter (https://github.com/google/google-java-format/issues/425#issuecomment-5928605364). Line lengths and tabs are in a different category than configuration for core formatting layout decisions. Other opinionated formatters also support configuring line lengths and tabs.\n\nThe bug for line lengths (#425) reviewed more votes, there have been fewer requests for tabs. There's some evidence [tabs are not as widely used as spaces](https://hoffa.medium.com/400-000-github-repositories-1-billion-files-14-terabytes-of-code-spaces-or-tabs-7cfe0b5dd7fd) in the Java ecosystem.\n\nAnother potential different from `--max-line-length` is that it's possible to convert spaces to tabs by post-processing the formatter output, i.e.\n\n```\ngoogle-java-format - | unexpand -t 2\n```\n\nAdding a `--use-tabs` flag is currently unplanned, this bug tracks demand for it. If you would like to use google-java-format but its lack of support for tab-based indents is prevent you from doing that, please 'thumbs up' the bug or leave a comment.","author":{"url":"https://github.com/cushon","@type":"Person","name":"cushon"},"datePublished":"2026-10-02T11:37:00Z","url":"https://github.com/google/google-java-format/issues/1470"}
| 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:2498e820-1b37-f5df-eca2-5a781597c076 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AD6:21705E:1E007D:28C7E5:6AFBAD5D |
| html-safe-nonce | e2fe8e4137f8e602ae613429d4a3708875ed679b408dc3287bb8941b60acf39a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUQ2OjIxNzA1RToxRTAwN0Q6MjhDN0U1OjZBRkJBRDVEIiwidmlzaXRvcl9pZCI6IjcyMDIwOTkzMjQ2NTIzMzQ0MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 67ebce2186f00268164b4ef5dc75bce35031851ba7b6547ce0a19a54d8192295 |
| hovercard-subject-tag | issue:5676829020 |
| 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/google/google-java-format/1470/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aea9aa2c868693eff9b7bf8d4f2357738fb151cc59a3afc47b532566c406756a/google/google-java-format/issues/1470 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aea9aa2c868693eff9b7bf8d4f2357738fb151cc59a3afc47b532566c406756a/google/google-java-format/issues/1470 |
| og:image:alt | Support for configuring tabs was added to the API in #1320, but there is not currently a CLI flag for it. In general google-java-format remains committed to being an opinionated, low-configuration ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cushon |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| turbo-cache-control | no-preview |
| go-import | github.com/google/google-java-format git https://github.com/google/google-java-format.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 35448780 |
| octolytics-dimension-repository_nwo | google/google-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35448780 |
| octolytics-dimension-repository_network_root_nwo | google/google-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 | 08c8f17f9d27054a108b8b6254e405de0151f660 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width