visual code collapse function code example Example: how to collapse only methods in vscode Ctrl + K + 3 to collapse all methods in a class in vscode