Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to search in side-by-side diff for code that is currently hidden?

My company recently upgraded Bitbucket Server and now the UI of the diff viewer has completely changed. Apparently, it was a long standing user request to not override Ctrl+F in the diff viewer which has finally been implemented.

In the new version, instead of showing the search within the side-by-side diff viewer, the browser search view is used. However, when reviewing PR, most of the time not all of the code is shown right away and instead hidden and needs to be manually revealed. This in turn means, that the code is no longer searchable (as it is not rendered in the DOM - thus also invisible for the browser) which is extremely annoying when e.g. trying to find out other usages of a variable that has been modified in a PR.

Even more so, there seems to be no easy way to show the entire source file in the diff viewer without first searching and then clicking "Show x hidden lines" button multiple times.

My current workaround is to click the "View the entire source for this file" button at the top right of the editor to open a second tab with the full source code. This standalone code viewer still has Ctrl + F overridden and works well to search through the code. But now I have to go back and forth between tabs in order to do review the code and add comments which used to be very comfortable and easy in older versions.

Is this really as bad as it seems to me, or is there a hidden easy solution for this problem?

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,263 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you