简体   繁体   English

Intellij Windows 终端作为终端(在ide中)

[英]Intellij Windows Terminal as terminal (in ide)

I use WSL with Ubuntu 18.04.我将 WSL 与 Ubuntu 18.04 一起使用。

In Intellij i want to change terminal to Windows Terminal (or Ubuntu Terminal), but when I add wt.exe as shell path (File -> Settings -> Tools -> Terminal), ide returns new window with Windows Terminal (not on the bottom of ide). In Intellij i want to change terminal to Windows Terminal (or Ubuntu Terminal), but when I add wt.exe as shell path (File -> Settings -> Tools -> Terminal), ide returns new window with Windows Terminal (not on the ide的底部)。

I also used Windows Terminal.exe path, but it doesn't work.我还使用了 Windows Terminal.exe 路径,但它不起作用。

C:\Users\USER\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe/wt.exe

You can't use GUI app as the terminal shell in IntelliJ IDEA, use the command line app like cmd.exe , powershell.exe or c:\Windows\System32\bash.exe . You can't use GUI app as the terminal shell in IntelliJ IDEA, use the command line app like cmd.exe , powershell.exe or c:\Windows\System32\bash.exe .

Now you can use WSL terminal inside the IDE by just using the wsl.exe string in the terminal settings of your IntelliJ IDEA as the documentation describes:现在,您可以在 IntelliJ IDEA 的终端设置中使用wsl.exe字符串,在 IDE 中使用 WSL 终端,如文档所述:

Shell path Shell 路径
Specify the shell that will run by default.指定默认运行的 shell。 Here are some examples of different shells:以下是不同 shell 的一些示例:

  • Bash: /bin/bash Bash:/bin/bash
  • Z shell: /bin/zsh Z shell:/bin/zsh
  • Bash for Windows: bash.exe Bash 用于 Windows:bash.exe
  • WSL: wsl.exe WSL:wsl.exe
  • PowerShell: powershell PowerShell:powershell
  • Command Prompt: cmd.exe命令提示符:cmd.exe
  • Cygwin: "C:\cygwin\bin\bash.exe" --login -i Cygwin: "C:\cygwin\bin\bash.exe" --login -i

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM