Visual Studio代码 - 键盘快捷键 - 全部展开/折叠
答
这是。
Ctrl+Shift+[ Fold (collapse) region editor.fold
Ctrl+Shift+] Unfold (uncollapse) region editor.unfold
Ctrl+K Ctrl+[ Fold (collapse) all subregions editor.foldRecursively
Ctrl+K Ctrl+] Unfold (uncollapse) all subregions editor.unfoldRecursively
Ctrl+K Ctrl+0 Fold (collapse) all regions editor.foldAll
Ctrl+K Ctrl+J Unfold (uncollapse) all regions
看看Visual Studio代码Keybindings部分在这个链接。
此外,在pdf.here提供平台特定的键盘快捷方式是链接
答
您可以为设置自定义值。
- 打开命令面板(在Mac上⌘ + ⇧ + P或F1)
- 搜索
Open Keyboard Shortcuts
- 然后搜索
collapse
- 最后点击+在
Collapse All
和Collapse Folders in Explorer
选项附近签字并设置shor tcuts像我一样
或者可以打开keybindings.json
文件,将其添加到主阵列。
,
{
"key": "cmd+k cmd+s",
"command": "search.action.collapseSearchResults"
},
{
"key": "cmd+k cmd+e",
"command": "workbench.files.action.collapseExplorerFolders"
}
和平! ✌️
+0
非常棒的人,谢谢。 –
可能的重复[如何折叠Visual Studio代码的Windows部分代码](http://stackoverflow.com/questions/30067767/how-do-i-collapse-sections-of-code- in-visual-studio-code-for-windows) –