Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a terminal with a horizontal split in visual studio code

This seems quite basic, but I can only seem to create vertical splits in vs code, and would like to be able to create horizontal but don't know what the command is to do so.

I have tried looking through the commands prefixed with Terminal: , but don't seem to have anything that will create a new terminal in a horizontal split. The command that I'm using to create a new terminal is Terminal: Create New Integrated Terminal

like image 536
baxx Avatar asked Sep 13 '25 11:09

baxx


2 Answers

open a first terminal, then a second one, then right click a terminal: "move to editor area".

like image 86
Bluz Avatar answered Sep 16 '25 07:09

Bluz


Configure default terminal location

In theory you can configure the terminal location, using Workbench > Panel: Default Location:

enter image description here

The setting ID is workbench.panel.defaultLocation

The JSON is:

"workbench.panel.defaultLocation": "left"

That doesn't work for me. Sounds like a bug.

Work-around

To work around this you can:

  1. Pull up a terminal with Ctrl'
  2. Right click on the TERMINAL tab
  3. Select either "Move panel left" or "Move panel right"
  4. Click into the panel
  5. Hit CtrlShift5 to split the terminal
  6. You now have two terminals, one above the other
like image 29
Terry Ebdon Avatar answered Sep 16 '25 07:09

Terry Ebdon