Visual studio code 在VSCode中按编号关闭编辑器组的快捷方式?
我打开了四个编辑组。我想关闭编辑组三。Visual studio code 在VSCode中按编号关闭编辑器组的快捷方式?,visual-studio-code,vscode-settings,Visual Studio Code,Vscode Settings,我打开了四个编辑组。我想关闭编辑组三。 我可以绑定针对第三组的快捷方式吗? 前任。 Ctrl+X+G+3杀死第三组您需要一个宏扩展名,请尝试:。没有允许您杀死特定组的内置命令。您只能杀死当前组、其他组或所有组。但您可以创建一个宏来聚焦特定组,然后杀死该组: { "command": "multiCommand.closeGroup3", "sequence": [ "workbench.action.focusThirdEditorGroup", "w
我可以绑定针对第三组的快捷方式吗?
前任。
Ctrl+X+G+3
杀死第三组您需要一个宏扩展名,请尝试:。没有允许您杀死特定组的内置命令。您只能杀死当前组、其他组或所有组。但您可以创建一个宏来聚焦特定组,然后杀死该组:
{
"command": "multiCommand.closeGroup3",
"sequence": [
"workbench.action.focusThirdEditorGroup",
"workbench.action.closeGroup",
]
},
{
"command": "multiCommand.closeGroup2",
"sequence": [
"workbench.action.focusSecondEditorGroup",
"workbench.action.closeGroup",
]
},
然后在keybindings.json中设置一个keybinding:
{
"key": "shift-alt-3",
"command": "multiCommand.closeGroup3"
},
{
"key": "shift-alt-2",
"command": "multiCommand.closeGroup2"
},
我选择该键绑定是因为您的,Ctrl+X+G+3
,首先触发cut
操作,Ctrl-G
也绑定到其他命令
因此,您必须设置类似的多命令来关闭其他编辑器组,但这应该非常简单