2016-09-27 195 views
9

试图在Intellij中找到与折叠/展开所有功能相同的ctrl + shift +“ - ”Visual Studio代码 - 键盘快捷键 - 全部展开/折叠

+0

可能的重复[如何折叠Visual Studio代码的Windows部分代码](http://stackoverflow.com/questions/30067767/how-do-i-collapse-sections-of-code- in-visual-studio-code-for-windows) –

回答

19

这是。

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提供平台特定的键盘快捷方式是链接

WindowsMACLinux

1

您可以为设置自定义值。

  1. 打开命令面板(在Mac上 + + PF1
  2. 搜索Open Keyboard Shortcuts
  3. 然后搜索collapse
  4. 最后点击+Collapse AllCollapse Folders in Explorer选项附近签字并设置shor tcuts像我一样

keyboard vscode collapse all shortcuts

或者可以打开keybindings.json文件,将其添加到主阵列。

, 
    { 
    "key": "cmd+k cmd+s", 
    "command": "search.action.collapseSearchResults" 
    }, 
    { 
    "key": "cmd+k cmd+e", 
    "command": "workbench.files.action.collapseExplorerFolders" 
    } 

和平! ✌️

+0

非常棒的人,谢谢。 –

相关问题