Vscode code block / full text collapse / expand shortcut

Requirements & amp; operations

There are two types of scenes commonly used (pay attention to the scope of operation):

To operate all code blocks in the file where the cursor is located:

Collapse all Ctrl + K + 0 expand all Ctrl + K + J just operate the code in the code block where the cursor is located:

Collapse Ctrl + Shift + [ Expand Ctrl + Shift +]

More operations

If you have more needs, you can use Ctrl + Shift + P to search fold and unfold for more options.
The following commands can be used to find, do not have to remember (but the above two are still necessary to be familiar with).

Unfold - unfold

Fold - fold

Read More: