I really like using the VSCode terminal and I don't want to fire up a separate terminal app, but the integrated terminal occupies too much screen space. It would be great to move it to another monitor or reposition it. Is this possible?
-
1same thoughts here... ?did you found a solution?? :-) – ZEE Dec 01 '20 at 13:53
-
related on SO: [Is it possible to open integrated terminals from VS Code in a separate window?](https://stackoverflow.com/q/59665958/11107541) – starball Jul 08 '23 at 21:06
7 Answers
I do not think it is possible to open the integrated terminal (or anything in the panel) in a new window directly. If you do not want to use an external terminal you could:
make the terminal its' smallest possible size and maximize it using the "^" button (Image of the ^ button) on demand. You can also set a shortcut for
workbench.action.toggleMaximizedPanelto achieve this more efficiently.create a new VSCode Window and only work with the panel / integrated terminal in the new window.
- 334
- 2
- 2
-
4Ah! Yes I liked your 2nd point. I should have thought of that. Thanks Tom – Dale Botha Aug 06 '19 at 12:27
-
Of course, you can't use the same folder/workspace... You'll have to open a folder further up or down lolz. – Andrew Dec 09 '20 at 18:01
I suggest to simply not to use the built in terminal, but open a standalone one out of VS Code.
You can use any terminal you want.
-
-
1You just need to open a new terminal (not on vscode) and go to the same folder as your vscode workspace – ZecKa Apr 27 '20 at 16:57
-
36
-
8Problem is you can't run e.g. VSCode Tasks or Launches this way. Using a new VSCode window seems to be the only way. – Andrew Dec 09 '20 at 17:59
-
1It's not the same, the pane with terminal also contains `problems`, `output`, `debug console` etc. These require the workspace context. – Dois Jun 08 '22 at 02:12
-
1This is not a valid answer. The OP clearly states "I don't want to fire up a separate terminal app". There could be multiple good reasons for this so let's not make assumptions and just try to answer the question. – Lqueryvg Aug 16 '22 at 08:20
Detached windows using the same workspace is not supported yet in Visual Studio Code. The highly upvoted feature request is at https://github.com/microsoft/vscode/issues/10121.
- 2,345
- 1
- 28
- 28
Since VsCode is kind of a electron application, its UI is a webpage rendered inside embedded chromium browser. See for yourself: Open menu Help / Toggle Developer tools.
So you're basically asking if you can pop out DIV of a web page and "open" it in another browser instance. This is not possible.
- 2,804
- 7
- 48
- 73
- 151
- 5
A popout window would be nice.
But you CAN absolutely get the terminal window onto a "second monitor":
Resize vscode by corner-dragging so its windows extends across 2 screens - Generally extending to the right.
Set your terminal window to be on the right. (Right-click the terminal/output tabs section)
Then move the split point to be just at the join of your monitors.
TaDa! - Terminal window now 'by itself' on your monitor on the right.
I work like this daily...
- 141
- 3
-
-
@AshleyWilson - I suppose your mileage could vary with differing monitor parameters, sure. But my two monitors vary by both size and physical DPI and it works fine. At my work the right-hand monitor is in portrait, and it works fine... If you don't like the way the terminal looks on the secondary monitor, adjust the terminal font in vscode perhaps? – spechter Aug 10 '23 at 02:28
I managed to accomplish this with: Ctrl+k o
I found this on the following list of keyboard shortcuts:
https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
- 3,091
- 10
- 23
- 26
- 27
- 2
-
When pressing `Ctrl + k o` i get an error: > The active editor must contain an openable resource. – Mikael Falkvidd Jan 13 '21 at 12:35
-
3
-
What you have seen is Ctrl k + ctrl 0 (not o) and this shortcut is nothing to do with the terminal, it's for code folding. – PrestonDocks Dec 20 '22 at 10:02
The ideal case of what you're asking for is tracked by two issue tickets that are still open (not implemented):
Allow for floating windows #10121 (a more general request covering all Panels)
You can give those issue tickets a thumbs up reaction to show support for them getting implemented, and subscribe to them to get notified about discussions and updates. But please don't make a "me too" comment. "me too" comments generally come off as annoying to repo maintainers because they clutter up discussion and don't contribute anything of significant value.
As for workarounds, you can create a new and empty VS Code window (with no workspace folder), and drag the terminal from your pre-existing window into that one. You can also detach the session from one VS Code window, and then reattach it into another one (using the Terminal: Detach Session and Terminal: Attach to Session commands in the command palette respectively). See also the user docs.
- 140
- 1
- 10
