close all folders in vs code code example Example: vs code collapse folders in explorer > File: Collapse Folders in Explorer