将 Visual Studio Code 中的终端移动到另一个屏幕(或新的编辑器选项卡) [英] Move terminal in Visual Studio Code to another screen (or the to a new editor tab)

查看:59
本文介绍了将 Visual Studio Code 中的终端移动到另一个屏幕(或新的编辑器选项卡)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您知道是否可以在窗口中打开visual studio code的终端将其放在第二个屏幕上?谢谢

解决方案

在下一版本的 vscode v1.58 中,您将能够将终端拖动或移动到编辑器.请参阅


<块引用>

编辑区终端

终端现在可以在编辑器区域中创建或移动到编辑器区域,启用一个多维网格布局,持续存在并保持可见无论面板状态如何.

通过在编辑器区域中创建终端命令创建终端.

通过拖放将终端从面板移动到编辑器从选项卡列表中,运行 Move Terminal into Editor Area终端聚焦,或选择上下文菜单操作.

因此,在 Insiders Build now 中,我可以打开一个新窗口并将终端从前一个窗口轻松拖到新窗口中(现在作为 终端编辑器)或简单地拖到它自己的编辑器中同一个窗口.

请注意,将现有编辑器移动到新窗口显然会更改工作目录,因此如果您想要旧的 cwd,则必须 cd 到它.将终端移动到同一窗口的编辑器区域会保留其所有状态.

would you know if it is possible to open the terminal of visual studio code in window to put it on a second screen? thank you

解决方案

In the next version of vscode, v1.58, you will be able to drag or move a terminal to an editor. See https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_58.md#terminals-in-the-editor-area

And in v1.59 you will be able to drag a terminal to another window.

Drag terminals from the tabs list or editor area of one window into the tabs list, editor area, or panel of another window.


Terminals in the editor area

Terminals can now be created in or moved to the editor area, enabling a multi-dimensional grid layout that persists and remains visible regardless of panel state.

Create terminals via the Create Terminal in Editor Area command.

Move a terminal from the panel to the editor by dragging and dropping from the tabs list, running Move Terminal into Editor Area with a terminal focused, or selecting the context menu action.

So in the Insiders Build now I can open a new window and drag a terminal from there previous window to the new window easily (as a terminal editor now) or simply into its own editor in the same window.

Note that moving an existing editor to a new window apparently changes the working directory so if you want the old cwd you will have to cd to it. Moving an terminal into the same window's editor area preserves all of its state.

这篇关于将 Visual Studio Code 中的终端移动到另一个屏幕(或新的编辑器选项卡)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆