collapse and expand all folders vscode code example Example: vs code collapse folders in explorer > File: Collapse Folders in Explorer