The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Frank_Spafford
Contributor
October 1, 2015

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

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events