How to open a terminal on WebStorm?

前端 未结 13 1556
心在旅途
心在旅途 2020-12-29 01:07

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

相关标签:
13条回答
  • 2020-12-29 01:30

    For Windows 10 you may prefer use terminal from Windows Subsystem for Linux. For this need put path to bash.exe.

    In my case it was:

    c:\Windows\WinSxS\amd64_microsoft-windows-lxss-bash_31bf3856ad364e35_10.0.15063.0_none_50af37c8f560d163\bash.exe
    
    0 讨论(0)
  • 2020-12-29 01:31

    For version phpstorm 2017 (windows 10), the below settings work!

    change the Path to your project path

    change user_name_win to your win username

    0 讨论(0)
  • 2020-12-29 01:32

    If you have the 64bit version of Git use

    "C:\Program Files\Git\bin\sh.exe" -login -i 
    

    If you have the 32bit version use

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

    If you have installed ubuntu for windows 10 you can use

    bash.exe
    
    0 讨论(0)
  • 2020-12-29 01:38

    If you are using Ubuntu, change shell path from File->Setting->Terminal->Shell path:

    /bin/bash --login
    

    Then restart your IDE.

    0 讨论(0)
  • 2020-12-29 01:40

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

    for 64bit:
    "C:\Program Files\Git\bin\sh.exe" -login -i

    for 32bit:
    "C:\Program Files (x86)\Git\bin\sh.exe" -login -i

    Don't forget the quotes around the command.

    0 讨论(0)
  • 2020-12-29 01:41

    The problem in my case was that I had the "Start directory" field of the Tools > Terminal settings page set to a path which didn't exist on my drive. It's too bad the error message is not more specific when this kind of mistake is made.

    0 讨论(0)
提交回复
热议问题