如何在 Visual Studio Code 中折叠或折叠代码部分?
支持此功能吗?
Folding https://code.visualstudio.com/docs/editor/codebasics#_folding自 Visual Studio Code 以来已推出并实施版本0.10.11 https://code.visualstudio.com/updates/vFebruary。有以下键盘快捷键可用:
-
Fold折叠光标处最里面的未折叠区域:
-
Ctrl + Shift + [ on Windows and Linux
-
⌥ + ⌘ + [ on macOS
-
Unfold展开光标处的折叠区域:
-
Ctrl + Shift + ] on Windows and Linux
-
⌥ + ⌘ + ] on macOS
-
Fold All折叠编辑器中的所有区域:
-
Ctrl + K, Ctrl + 0 (zero) on Windows and Linux
-
⌘ + K, ⌘ +0 (zero) on macOS
-
全部展开在编辑器中展开所有区域:
-
Ctrl + K, Ctrl + J on Windows and Linux
-
⌘ + K, ⌘ + J on macOS
参考: https://code.visualstudio.com/docs/getstarted/keybindings https://code.visualstudio.com/docs/getstarted/keybindings
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)