【发布时间】:2017-02-04 17:11:49
【问题描述】:
试图在 Intellij 中找到相当于 Ctrl + Shift + - 的等价物来折叠/展开所有功能。
【问题讨论】:
试图在 Intellij 中找到相当于 Ctrl + Shift + - 的等价物来折叠/展开所有功能。
【问题讨论】:
来了。
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 Code Keybindings 部分。
pdf 中还提供特定于平台的键盘快捷键。这里是链接
【讨论】:
Ctrl 的位置使用 ⌘ (Command)
您可以为此设置自定义值。
Open Keyboard Shortcuts
collapse
Collapse All和Collapse Folders in Explorer选项附近的+符号,像我一样设置快捷方式或者您可以打开keybindings.json 文件并将其添加到主数组中。
,
{
"key": "cmd+k cmd+s",
"command": "search.action.collapseSearchResults"
},
{
"key": "cmd+k cmd+e",
"command": "workbench.files.action.collapseExplorerFolders"
}
【讨论】:
转到 文件 --> 首选项 --> 键盘快捷键(或 Ctrl+K Ctrl+S)
搜索单词fold all
你需要的是:
设置您的自定义键盘快捷键
【讨论】:
我使用的一种简单方法是:
Collapse Folders in Explorer
您还可以在设置中为此命令定义自定义快捷方式。
【讨论】:
转到“键盘快捷键”并输入搜索输入:“折叠所有区域”。 Uoy 请参阅折叠/展开(展开/折叠)命令和快捷方式。使用或更改它们。
【讨论】: