collapse selecte folder and subfolders in visual studio code code example Example: vs code collapse folders in explorer > File: Collapse Folders in Explorer