Can we combine grid layout and terminal panel in vscode?

Viewed 384

There is the grid layout in vs-code, and there is the terminal panel. Is there a way to combine both?

Lets say I want this :

--------------------------------------------------------------
|                                |                           |
|                                |                           |
|                                |                           |
|                                |         something         |
|                                |            here           |
|          editor here           |                           |
|                                |                           |
|                                |                           |
|                                |---------------------------|
|                                |                           |
|                                |                           |
|                                |          terminal         |
|                                |            here           |
|                                |                           |
|                                |                           |
|                                |                           |
--------------------------------------------------------------

I know we can put the terminal on the right, but I do not know if we can put it in the bottom of the right column. It works with other panel though, like editor.

1 Answers

To my best understanding, you cannot put the whole terminal panel (thinking of the combined: problems, output, debug console, terminal, ... group) in the grid layout. However, you can put individual terminal shells into the editor and they will behave like opened files, able to be moved between editor panes.

After you have opened the terminal panel, you can drag and drop the shell's name (located just left of the little + sign where you can create a new terminal. It will have a name like bash or any other shell you are using) into the editor.

To make it easier, there is a setting for terminal.integrated.defaultLocation where you can specify the value to be editor. You split the editor panel as you see fit and then press workbench.action.terminal.new (default keycode is Ctrl+`) and you terminal will appear in the selected grid section.

Related