Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you unsplit an editor, go back from 2 code views to 1, same with terminal

How do you unsplit an editor, go back from 2 code views to 1, same with terminal.

like image 755
Tyler Olthuizen Avatar asked May 15 '18 17:05

Tyler Olthuizen


People also ask

How do you unsplit a code or editor?

From the Window menu, select Remove Split.


1 Answers

Editor Groups

To "unsplit" editor groups without closing any open files, use the menu-bars: View > Editor Layout > Single (or, while in the editor, press and release ALT and then type vls).

Editor groups are also closed by default when they become empty. You can empty an editor group by closing tabs/files or by dragging all of the tabs from that group to another.

Hints:

  • Grabbing the area to the right of the tabs allows you to drag/drop all tabs in a group at once.
  • The "Open Editors" section of the "Explorer" panel lets you use CTRL and SHIFT to select and drag/close multiple editors at once. (If you don't have an "Open Editors" section, use the "..." menu of the Explorer panel to enable it.)

Terminal Groups

Terminals work differently than editor groups and are more limited:

You can open new terminal groups by pressing the '+' icon in the terminal tab of the panel.

"Splitting" a terminal (done by clicking the split icon in the terminal tab of the panel) really just opens an additional terminal in the same group and displays it side-by-side with the others in the group.

So, two ways to "unsplit" terminals:

  • Kill terminals (e.g. with the trashcan icon) until there is only one left in the group.
  • Switch to a new terminal group with only a single terminal in it.

(as of Visual Studio Code version 1.29.1)

like image 171
teichert Avatar answered Sep 22 '22 22:09

teichert