Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Windows Terminal as terminal (in ide)

I use WSL with 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).

I also used Windows Terminal.exe path, but it doesn't work.

C:\Users\USER\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe/wt.exe
like image 231
keyhha Avatar asked Apr 10 '20 23:04

keyhha


2 Answers

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.

like image 89
CrazyCoder Avatar answered Sep 28 '22 07:09

CrazyCoder


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:

Shell path
Specify the shell that will run by default. Here are some examples of different shells:

  • Bash: /bin/bash
  • Z shell: /bin/zsh
  • Bash for Windows: bash.exe
  • WSL: wsl.exe
  • PowerShell: powershell
  • Command Prompt: cmd.exe
  • Cygwin: "C:\cygwin\bin\bash.exe" --login -i
like image 24
ranu Avatar answered Sep 28 '22 07:09

ranu