You need to enable JavaScript to run this app. 请求在VS Code标签页右键菜单中添加「Close to the Left」选项
优惠活动
大模型
产品
解决方案
定价
更多

请求在VS Code标签页右键菜单中添加「Close to the Left」选项

关于VS Code「Close to the Left」未出现在右键菜单的解答

确实存在仅开发底层功能但未添加菜单入口的情况,VS Code中的「Close to the Left」就是这类典型案例,原因主要有以下几点:

  • 用户需求优先级考量:VS Code团队会根据功能的实际使用频率决定是否暴露交互入口。「Close to the Right」和「Close Others」属于标签页管理的高频操作,而「Close to the Left」的使用场景相对小众,为避免右键菜单过于臃肿,暂时未将其加入默认菜单。
  • 功能迭代的阶段性安排:很多功能会先完成核心逻辑开发(包括配套测试用例),但交互层入口(比如右键菜单、设置开关)会延后上线。这可能是团队在等待用户反馈,或是将其规划到后续版本的功能迭代中。
  • 仍可通过命令面板触发:虽然没有右键菜单入口,但该功能并非不可用。你可以打开命令面板(快捷键:Ctrl+Shift+P 或 Cmd+Shift+P),输入 Close Editors to the Left 就能直接执行该操作。

如果需要将「Close to the Left」添加到右键菜单,可通过自定义配置实现:

  1. 打开「快捷键设置」(Ctrl+K Ctrl+S),点击右上角的「打开键盘快捷方式(JSON)」
  2. 在 keybindings.json 中添加如下配置,即可给该功能绑定右键菜单触发:
{
    "command": "workbench.action.closeEditorsToTheLeft",
    "key": "",
    "when": "editorFocus && activeEditorGroupEmpty == false",
    "menu": {"menuId": "editor/title/context", "group": "navigation@1"}
}

内容的提问来源于stack exchange,提问作者alfawal

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.23 22:44:54