VS 代码 - 2 拆分终端合二为一(拆分) [英] VS code - 2 split terminal in one (split)

查看:38
本文介绍了VS 代码 - 2 拆分终端合二为一(拆分)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 Node.js 和 Angular 时,我目前使用两个终端,我必须通过下拉选项切换终端.

有没有办法在同一个地方有两个终端(拆分)像这样:

找不到方法.

解决方案

更新 - Visual Studio 代码从 1.21 版开始具有此功能

<块引用>

拆分可以通过单击面板中的拆分按钮、上下文菜单或命令 Ctrl+Shift + 5 来完成.

....


在 VS Code 引入该功能之前

内部 vs 代码

您可以将控制台配置为 bash 或 cygwin,然后安装并使用

在 Linux 上

我玩了一下 - tmux 也适用于 Mac,因此请查看上面的 Linux 部分.

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:

Couldn't find a way.

解决方案

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.

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.

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.

这篇关于VS 代码 - 2 拆分终端合二为一(拆分)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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