visual studio code expand all code example

Example 1: vscode expand all

Ctrl+Shift+[    Fold (collapse) region  editor.fold
Ctrl+Shift+]    Unfold (uncollapse) region  editor.unfold
Ctrl+K Ctrl+[   Fold (collapse) all subregions  editor.foldRecursively
Ctrl+K Ctrl+]   Unfold (uncollapse) all subregions  editor.unfoldRecursively
Ctrl+K Ctrl+0   Fold (collapse) all regions editor.foldAll
Ctrl+K Ctrl+J   Unfold (uncollapse) all regions

Example 2: visual studio code collapse all

// Fold
Ctrl + K + 0 // fold everything that could be folded
Ctrl + K + 1 // fold just the main branches

// Unfold
Ctrl + K + J // unfold everything

Tags:

Misc Example