Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I expand all files in VS Code's Explorer View?

The VS Code File Explorer View has a "Collapse All" button but no "Expand All" button, if fact I don’t see a way to expand all directories recursively as a single operation at all (The command palette shows a "Collapse All Folders" command, but no "Expand All Folders" command)

I generally wouldn’t use a fully expanded tree but it’s the only way I know to see all files that match when a filename filter is applied to the tree view without manually expanding every subdirectory (which only seem to be evaluated against the filter expression as you expand them).

I’m using version: 1.77.3 (Universal)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

a way to expand all directories recursively as a single operation

No, I don’t know of such a feature. And I see this as an XY problem, given that you said

it’s the only way I know to see all files that match when a filename filter is applied to the tree view without manually expanding every subdirectory (which only seem to be evaluated against the filter expression as you expand them).

A quick google of "github vscode issues explorer search collapsed folders" turns up the following issue tickets:

which are all closed as a duplicate of Explorer: resolve all folders before filtering #66971. Its current milestone at the time of this writing is "On Deck". Subscribe to the issue ticket to get notified of updates and discussion. You can show your support for the issue ticket by giving a thumbs up reaction to the issue. But please don’t make a "me too" comment. "me too" comments generally come off as annoying to repo maintainers because they clutter up discussion and don’t contribute anything of significant value.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading