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

20.4k views Asked by At

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

6

There are 6 answers

5
Terry Ebdon On

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
0
agm1984 On

If you're like me and your cat walked on your keyboard and opened a split terminal somehow, you can close it by right clicking the split piece and select Kill Terminal.

2
dgtlmonk On

Use tmux and use ITerm.app in your configuration

enter image description here

1
Bluz On

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

1
Mike T On

I have also found that changing the alignment of the terminal panel can give some more width and prevent crammed text in a narrow terminal column. To do this go into the VSCode menu...

View -> Appearance -> Align Panel -> Justify

This will place the terminal below everything and give extra width because it is no longer crowded by the Primary Side Bar.

0
N.Parooei On

On the terminal panel click on Configure Terminal Settings On the terminal panel click on Configure Terminal Settings

On the next screen change Default Location to editor On the next screen change Default Location to editor

Now if you create terminals it will create it in editor window