Quick way to collapse/expand all files at once on a pull request on GitHub

When I review pull requests on GitHub I usually start by collapsing all files and then expand them one at a time in order to focus on a single thing.

This can be slightly annoying because GitHub by default shows all files in an expanded state and one …


This content originally appeared on DEV Community and was authored by Dzhavat Ushev

When I review pull requests on GitHub I usually start by collapsing all files and then expand them one at a time in order to focus on a single thing.

This can be slightly annoying because GitHub by default shows all files in an expanded state and one needs to go through every single file header and click on the chevron icon to collapse all of them. Depending on the PR size this might take some time.

Luckily, there’s a quicker way. I recently found this neat shortcut/trick that can collapse/expand all files at once. It’s Alt + click on any chevron icon in the file’s header. Here’s a video:

Now you know it too. Happy PR reviewing 🎉

Photo by Kelly Neil on Unsplash


This content originally appeared on DEV Community and was authored by Dzhavat Ushev


Print Share Comment Cite Upload Translate Updates
APA

Dzhavat Ushev | Sciencx (2021-11-08T22:11:17+00:00) Quick way to collapse/expand all files at once on a pull request on GitHub. Retrieved from https://www.scien.cx/2021/11/08/quick-way-to-collapse-expand-all-files-at-once-on-a-pull-request-on-github/

MLA
" » Quick way to collapse/expand all files at once on a pull request on GitHub." Dzhavat Ushev | Sciencx - Monday November 8, 2021, https://www.scien.cx/2021/11/08/quick-way-to-collapse-expand-all-files-at-once-on-a-pull-request-on-github/
HARVARD
Dzhavat Ushev | Sciencx Monday November 8, 2021 » Quick way to collapse/expand all files at once on a pull request on GitHub., viewed ,<https://www.scien.cx/2021/11/08/quick-way-to-collapse-expand-all-files-at-once-on-a-pull-request-on-github/>
VANCOUVER
Dzhavat Ushev | Sciencx - » Quick way to collapse/expand all files at once on a pull request on GitHub. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/08/quick-way-to-collapse-expand-all-files-at-once-on-a-pull-request-on-github/
CHICAGO
" » Quick way to collapse/expand all files at once on a pull request on GitHub." Dzhavat Ushev | Sciencx - Accessed . https://www.scien.cx/2021/11/08/quick-way-to-collapse-expand-all-files-at-once-on-a-pull-request-on-github/
IEEE
" » Quick way to collapse/expand all files at once on a pull request on GitHub." Dzhavat Ushev | Sciencx [Online]. Available: https://www.scien.cx/2021/11/08/quick-way-to-collapse-expand-all-files-at-once-on-a-pull-request-on-github/. [Accessed: ]
rf:citation
» Quick way to collapse/expand all files at once on a pull request on GitHub | Dzhavat Ushev | Sciencx | https://www.scien.cx/2021/11/08/quick-way-to-collapse-expand-all-files-at-once-on-a-pull-request-on-github/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.