如何在 WebStorm 上打开终端? [英] How to open a terminal on WebStorm?

查看:44
本文介绍了如何在 WebStorm 上打开终端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让 WebStorm 打开终端?

How do I get WebStorm to open a terminal?

当我尝试这样做时,我得到一个异常:

When I try to do it I get an Exception:

"java.io.IOEXception:couldn't create PTY"

git 在我的电脑上也有同样的问题.

git also has the same problem on my computer.

推荐答案

转到 File ->设置 ->工具 ->终端并根据安装的git版本更改Shell路径.

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.

对于 64 位:
"C:\Program Files\Git\bin\sh.exe" -login -i

对于 32 位:
"C:\Program Files (x86)\Git\bin\sh.exe" -login -i

不要忘记命令周围的引号.

Don't forget the quotes around the command.

这篇关于如何在 WebStorm 上打开终端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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