To collapse a node and all its subnodes in Solution Explorer
  1. Right-click a node in Solution Explorer.
  2. Select Collapse All from the context menu. The selected node and all its subnodes will be collapsed.