Folder Folding is a lightweight VS Code extension that helps you collapse all descendant folders of a selected directory in the Explorer with a single command or keyboard shortcut.
Features
Recursive Collapse: Collapse a selected folder and all of its nested subfolders in the VS Code Explorer.
Keyboard Shortcut: Quickly collapse using Ctrl+K Ctrl+Shift+C (in both Explorer and Editor contexts).
Context Menu Command: Right-click any folder in the Explorer and choose Collapse Folder Recursively.
Collapse All: Collapse every open folder in the Explorer using Ctrl+Shift+X.
Installation
From the Marketplace
In VS Code, open the Extensions view (Ctrl+Shift+X).