5

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

 2 years ago
source link: https://dev.to/this-is-learning/quick-way-to-collapseexpand-all-files-at-once-on-a-pull-request-on-github-4pcp
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Cover image for Quick way to collapse/expand all files at once on a pull request on GitHub

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 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:

unknown tweet media contentPlay butt
Dzhavat Ushev profile image
Dzhavat Ushev
@dzhavatushev
twitter logo
Recently needed (then discovered) a neat way to collapse all files at once in a pull request (PR) on @github . It's `Alt + click` on the caret icon in the file header.
15:40 PM - 11 Oct 2021

Now you know it too. Happy PR reviewing 🎉


Photo by Kelly Neil on Unsplash


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK