vs code collapse all code example

Example 1: collapse all code vscode

Use :
Ctrl + K + 0 to fold all 
Ctrl + K + J to unfold all

Example 2: visual studio code terminal window shortcut back

// Toggle between terminal and editor focus
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus"},
{ "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"}

Example 3: 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

Example 4: collapse all code visual studio

Visual studio 
fold all: Ctrl + M + O
unfold all: Ctrl + M + P