A VS Code extension that adds Fold / Unfold commands which only act inside the current selection.
Perfect when you want to collapse or expand code just in the region you care about, without affecting the rest of the file.
✨ Features
Fold Everything Inside Selection
Collapse all foldable regions that are fully contained in your current selection.
Unfold Everything Inside Selection
Expand all foldable regions fully contained in your current selection.
Toggle Fold/Unfold Inside Selection
If anything inside the selection was previously folded, it unfolds; otherwise it folds.
Works in any language that provides folding ranges (JavaScript, TypeScript, JSON, XML, Python, etc.).