Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Consider support for tab-based indent, if only programmatically

Open
#1,320 9 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
java
Domain
tooling

Research direction

No file or test is named. Start by locating the internal indentation model and the output path that hard-codes spaces; define how tab column widths should be represented and verify formatted output uses tabs without breaking line-length behavior.

Written by the indexing model from the issue text.

Description

I would like to produce formatting with tabs, and this is currently impossible to do due to internal modeling.

Tabs generally have a column-based width associated with them. I use two columns to achieve the same look as two space indent, for example. This allows the algorithms based on line length to still work correctly.

In output, however, spaces are hard coded to be used to represent indent values.

Dominant language
Java
Stars
6.2k
Forks
936
Avg merge
6m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/google-java-format

All issues in google/google-java-format

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.