Intellij Windows Terminal 作为终端(in ide)
Intellij Windows Terminal as terminal (in ide)
我在 Ubuntu 18.04 中使用 WSL。
在 Intellij 中,我想将终端更改为 Windows 终端(或 Ubuntu 终端),但是当我将 wt.exe
添加为 shell 路径时(文件 -> 设置) -> 工具 -> 终端),ide returns 新的 window 和 Windows 终端(不在 ide 的底部)。
我也用了WindowsTerminal.exe路径,但是不行
C:\Users\USER\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe/wt.exe
您不能在 IntelliJ IDEA 中将 GUI 应用程序用作终端 shell,请使用 cmd.exe
、powershell.exe
或 c:\Windows\System32\bash.exe
等命令行应用程序。
现在,您只需在 IntelliJ IDEA 的终端设置中使用 wsl.exe
字符串,即可在 IDE 中使用 WSL 终端,如 documentation 所述:
Shell路径
指定默认情况下 运行 的 shell。以下是一些不同 shell 的示例:
- Bash: /bin/bash
- Z shell: /bin/zsh
- Bash 对于 Windows: bash.exe
- WSL:wsl.exe
- 功率Shell:功率shell
- 命令提示符:cmd.exe
- Cygwin: "C:\cygwin\bin\bash.exe" --login -i
我在 Ubuntu 18.04 中使用 WSL。
在 Intellij 中,我想将终端更改为 Windows 终端(或 Ubuntu 终端),但是当我将 wt.exe
添加为 shell 路径时(文件 -> 设置) -> 工具 -> 终端),ide returns 新的 window 和 Windows 终端(不在 ide 的底部)。
我也用了WindowsTerminal.exe路径,但是不行
C:\Users\USER\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe/wt.exe
您不能在 IntelliJ IDEA 中将 GUI 应用程序用作终端 shell,请使用 cmd.exe
、powershell.exe
或 c:\Windows\System32\bash.exe
等命令行应用程序。
现在,您只需在 IntelliJ IDEA 的终端设置中使用 wsl.exe
字符串,即可在 IDE 中使用 WSL 终端,如 documentation 所述:
Shell路径
指定默认情况下 运行 的 shell。以下是一些不同 shell 的示例:
- Bash: /bin/bash
- Z shell: /bin/zsh
- Bash 对于 Windows: bash.exe
- WSL:wsl.exe
- 功率Shell:功率shell
- 命令提示符:cmd.exe
- Cygwin: "C:\cygwin\bin\bash.exe" --login -i