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)
>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:
-
Please make it so that the search function in the file explorer descends into closed folders #159909
-
Improvement Request: Explorer Find should automatically unfold folders
#167181
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.