In my previous article I wrote about how to replace the default terminal with Git Bash. It’s an easy and at the same time a simple way to get access to some useful commands from linux in your Windows machine.
While this works great, using the Windows WSL is even better because it basically works like a real linux machine.
Note: This article is dedicated to PHPStorm editor, but the rule applies for any InteliJ IDE.
Ope Open PHPStorm settings, go to Tools->Terminal and update the “Shell Path” with the following value:
Make sure that the path to your Windows installation is the same as mine.
Oh! No step 2 here. You are ready! 🙂
Last note: This article assumes that you already have a linux distribution installed with your WSL. For more info check this one that I use: https://ubuntu.com/wsl