Edit.CollapseToDefinitions in vscode code example Example: collapse all code vscode Click to copyUse : Ctrl + K + 0 to fold all Ctrl + K + J to unfold all