google / google/google-java-format

Consider support for tab-based indent, if only programmatically

Open
#1,320 9 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
6.2k
Forks
937
Avg merge
6m
Merged PRs (30d)
3

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.