In a Bitbucket pull request file comparison can I specify the number of spaces to use for a tab character?

Frank_Spafford October 1, 2015

I would like this ability so that code is better aligned when doing comparisons.

1 answer

2 votes
evzijst
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2015

Yes you can, but it's an undocumented feature.

Adding ?ts=4 (where 4 is the desired width) to any URL that has a diff on it, you can change the width of the tabs (note, this only applies to actual tab characters and so for this to have any effect, your code must be formatted using tabs, not spaces).

In addition to that, there is another undocumented feature that lets you ignore all whitespace-only changes in a diff. Use this by adding w=1 to the URL.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events