8

As I'm working with Node.js and Angular, I've currently work with two terminals where I have to switch terminal by the dropdown option.

Is there a way to have two terminals (split) in the same place like this:

enter image description here

Couldn't find a way.

1
  • Which operating system? Commented Jan 30, 2018 at 12:56

3 Answers 3

14

Update - Visual studio code has this feature starting with version 1.21

Split terminals

The Integrated Terminal can now be split such that multiple are visible at once, which can enable much easier management of terminals when you need a watch and a run command for example:

Open the article to see the GIF demonstration.

enter image description here

Splitting can be done by clicking the split button in the panel, through the context menu or the command Ctrl+Shift + 5.

....


Before VS Code introduced the feature

Inside vs code

You can configure your console to bash or cygwin, and then install and use tmux or screen.


Initial answer before I understood the question intent was to do it inside vs code

Outside vs code

On windows

I'm using Cmder. It allows opening multiple cmd tabs, and configure more types of command lines / tabs - such as bash, nodejs etc.

screen shot of side by side consoles in Cmder

On Linux

I got to play a bit with tmux and I heard it's a good option.

Screen shot from google:

On Mac

As Brad stated - tmux works also on Macs, so have a look at the Linux section above.

Sign up to request clarification or add additional context in comments.

3 Comments

I randomly stumbled upon this question while googling how to keep the split windows after VS code restarts. Thanks for introducing me to Cmder!
@BradParks adding it to the answer :)
Is it possible to split two "JavaScript Debug Terminals"? When I open one and click split, it automatically splits to a ZSH.
3

As of June 2021, you can select the terminal then enter command: ctrl + shift + 5.

Comments

2

VSCode has added support to split the integrated terminal in february 2018, as requested by this issue.

At the time it is not yet released, you need to install the Insiders version of VSCode.

You have to set the keybindings yourself, the default are still being discussed here.

1 Comment

As @Bilow said, support for splitting terminals has landed in v1.21 see code.visualstudio.com/updates/v1_21#_integrated-terminal Ctrl+\ or there is a button.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.