

įold Recursively ( Ctrl+K Ctrl+[) folds the innermost expanded region at the cursor and all regions inside that region.

Toggle Fold ( Ctrl+K Ctrl+L) folds or unfolds the region at the cursor. There are several advanced keyboard shortcut to fold/unfold code blocks in VSCode, although I personally don’t use them very often. You can quickly fold a block of code, given that your cursor is placed inside of it by pressing Ctrl+Shift+ key combination will unfold the collapsed region at the cursor.Īlternatively, one can use the Command Palette and type fold to do the same thing, although it will take more than one keyboard shortcut to complete In VSCode terminology, the collapsible code blocks feature is called Fold/Unfold.

3 Advanced Collapse Settings VSCode Collapse/expand
