Use your mouse or trackpad to select a block of code you want to collapse/expand then:
Fold: Ctrl + Shift + [
Unfold: Ctrl + Shift + ]
In case you want to collapse all code blocks in the current file:
Fold all: Ctrl + K then Ctrl + 0 (the zero number key)
Unfold all: Ctrl + K then Ctrl + J
vscode collapse code
最新推荐文章于 2024-03-14 19:01:33 发布