Also, PhpStorm automatically switches to Git from WSL for projects that are opened when you use the \\wsl$ path.įor more information about working with Git in PhpStorm, refer to Git. If Git is not installed on Windows, PhpStorm searches for Git in WSL and uses it from there. The most important reason people chose Visual Studio Code is: Visual Studio Code comes fairly complete out of the box, but there are many plug-ins available to extend its functionality. Visual Studio Code is ranked 1st while PhpStorm is ranked 11th. PhpStorm supports Git from the Windows Subsystem for Linux 2 (WSL2), which is available in Windows 10 version 2004. In the question What are the best JavaScript IDEs or editors. In the Select Path dialog that opens, select the folder in the WSL file system that contains the project to open, or type the path to the \\wsl$ project location manually. In PhpStorm, you can directly open a project stored in the WSL file system and work with it like with any other project.Ĭlick Open on the Welcome screen or select File | Open from the main menu. Open a project stored in the WSL file system You can appoint the created interpreter for all common tasks: executing scripts or Composer commands, running PHP Quality tools, and so on. Sudo apt install php php-mbstring php-xml php-zip php-curl php-xdebugĬonfigure a WSL-based remote interpreter as described in Configure remote PHP interpreters. Open Windows PowerShell as Administrator and run In this case, you need to do the following: Upon the first launch, the system may prompt you to enable the Windows optional feature. Code quality tools Integrate external code quality toolsincluding PHP CS Fixer, Laravel Pint, PHPStan, Psalm, or Reactwith PhpStorm. In this case, you need to update your WSL distribution. Take advantage of PhpStorm's native support for JavaScript and many other related web technologies. Note that PhpStorm does not support legacy WSL, which you may have installed before upgrading your system to the build 16299.15 or later of Windows 10. Follow these instructions to switch the distributive. To work with WSL 2, your Windows version should be 10 build 18917 or later. See the official guide Install the Windows Subsystem for Linux for instructions. Configure WSLĭownload and install a WSL distribution (for instance, Ubuntu) from Microsoft Store.įor this step, be sure to use at least Windows 10 or later with the latest “Fall Creators Update” (minimum version 1709, build 16299.15). Currently, it supports several Linux distributions, such as Ubuntu, OpenSUSE, and SLES. WSL ( WSL 2) – Windows Subsystem for Linux – is a compatibility layer for running Linux binary executables natively on Windows 10 and later.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |