![]() Last note: This article assumes that you already have a Linux distribution installed with your WSL. Note: You must close the current Terminal and re-open it to make these changes visible. Go to File -> New Projects Settings -> Settings For New Projects…, then under Tools->Terminal update the “Shell Path” with the following value, which is exactly like in Step 1: C:\Windows\System32\wsl.exe Thus we must add the settings for new projects also. But what happens when we create new projects? The cmd.exe from Windows 10 is back. It’s worth noting that in step 1 we set up it only for the Current Project. Make sure that the path to your Windows installation is the same as mine. Ope Open PHPStorm settings from File->Settings, go to Tools->Terminal, and update the “Shell Path” with the following value: C:\Windows\System32\wsl.exe Note: This article is dedicated to the PHPStorm editor, but the rule applies to any IntelliJ IDE. While this works great, using the Windows WSL is even better because it basically works like a real Linux machine. ![]() It’s easy and at the same time a simple way to get access to some useful commands from Linux in your Windows machine. It is already perfect.In my previous article, I wrote about how to replace the default terminal with Git Bash. Branch info is shown, lambda symbol as well. And you also can mix Win commands with bash syntax(with "Shell integration" ticked). You have color support, Windows backslashes and so on. That is, stop using mingw64 and only ConEmu + clink. With WSL toolchain set up for your project, you can build using a toolchain from Linux, and run/debug on WSL, without. Currently, it supports several Linux distributions, such as Ubuntu, OpenSUSE, and SLES. This will open cmder in the current folder, and you also have git support. WSL ( WSL 2) - Windows Subsystem for Linux - is a compatibility layer for running Linux binary executables natively on Windows 10 and later. just configure Intellj Terminal to open cmder, with default task like this: cmd /k ""%ConEmuDir%\.\init.bat" ".change terminal to git-bash.exe and get used to slash as path separator(and that is much saner than back slashes, trust me). ![]() Branch info is shown at the right of current path. Then I changed path in Terminal settings to a BAT file, but terminal seems not support running it I see terminal flashes and closes. I have the task, but it seems that Intellij does not support args after an executable in Terminal settings, so /TASK xxx is not parsable. I tried this: creating a task for git-bash in Cmder and try to use cmder.exe /TASK xxx in Intellij. I don't think you can run git-bash in cmder AND from Intellij IDEA terminal. Or if someone can show me how to change git bash.exe so that it can automatically translate the windows directory to Linux type, that would also work. "C:\Program Files\Git\bin\sh.exe" /k ""%CMDER_ROOT%\vendor\init.bat"" "C:\Program Files\Git\bin\sh.exe" -login -i /k ""%CMDER_ROOT%\vendor\init.bat"" "C:\Program Files\Git\bin\bash.exe" /k ""%CMDER_ROOT%\vendor\init.bat"", it was not working. However, that is only using cmder as a coating for cmd.exe, not bash.exe as I want. "cmd.exe" /k ""%CMDER_ROOT%\vendor\init.bat"" ![]() I have looked up online, people shared about how to incorporate cmder in idea's terminal by using the path: However, one disadvantage for directly using bash.exe is that it will not automatically convert a windows directory, for example:ĭ:\Documents\Adobe, when I copy this after cd, it will be:Ĭd /d/Documents/Adobe which I will get in cmder. So I have installed both Cmder and Git bash, and my Cmder is setup in a way that to run git bash.exe inside.Ĭurrently my Intellij idea's path for terminal is set to:Ĭ:\Program Files\Git\bin\bash.exe, which works fine for bash.exe
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |