Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code leave split editor open when empty

Tags:

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.

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.

like image 809
Will Hitchcock Avatar asked Mar 01 '17 17:03

Will Hitchcock


People also ask

How do I keep Visual Studio Code open?

To keep the file always available in VSCode editor (that is, to take it out of Preview Mode into normal mode), you can double-click on the tab. Then, you will notice the name becomes non-italic. Of course, you can simply double-click to open a file. This will open the file in a new tab, skipping the Preview Mode.

How do I enable Open editor code in Visual Studio?

Side by side editing# If you already have one editor open, there are multiple ways of opening another editor to the side of the existing one: Alt click on a file in the Explorer. Ctrl+\ to split the active editor into two. Open to the Side (Ctrl+Enter) from the Explorer context menu on a file.

What is Zen mode in VS Code?

Zen mode is a feature in a VS Code that hides all UI (Status Bar, Activity Bar, Panel, and Sidebar) and displays only the editor on a full screen. Zen Mode.


1 Answers

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

like image 162
rein Avatar answered Oct 17 '22 08:10

rein