Visual Studio Code 在为空时让拆分编辑器保持打开状态 [英] Visual Studio Code leave split editor open when empty

查看:55
本文介绍了Visual Studio Code 在为空时让拆分编辑器保持打开状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio Code 是否可以选择在没有活动选项卡时让拆分编辑器屏幕保持打开状态?

Does Visual Studio Code have an option for leaving the split editor screens open when they have no active tabs?

当前的行为是,如果我关闭分屏中最后一个打开的选项卡,编辑器将完全删除分屏.因此,如果我将编辑器拆分为两个垂直屏幕,则在关闭最后一个文件后它会返回到单个屏幕.

The current behavior is that if I close out of the last open tab in a split screen that the editor removes the split altogether. So if I have the editor split into two vertical screens, it goes back to a single screen once the last file is closed.

是否有可能使拆分即使在空的情况下也能保持活动状态?Sublime Text 和 Atom 支持这种类型的行为,但我没有找到选项或提及如何在 VSC 中执行此操作.

Is it possible to make it so that the splits stay active even when empty? This type of behavior is supported in Sublime Text and Atom, but I haven't found an option or any mention of how to do this in VSC.

推荐答案

您可以使用 workbench.editor.closeEmptyGroups 配置设置来实现这一点.

You can achieve this using the workbench.editor.closeEmptyGroups config setting.

这篇关于Visual Studio Code 在为空时让拆分编辑器保持打开状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆