Forem

Cover image for Quick way to collapse/expand all files at once on a pull request on GitHub
Dzhavat Ushev for This is Learning

Posted on • Originally published at dzhavat.github.io

6

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:

Now you know it too. Happy PR reviewing 🎉


Photo by Kelly Neil on Unsplash

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay