

The IP is entered under "Range" and "Remote IP address".īy default, the WSL2 is assigned an IP address that comes from this range. The values can be made via a right click on the corresponding entry and properties.

This can be worked around by installing PHPStorm directly into WSL2 and using an X11 server to display the windows in Windows. In PHPStorm the project can then be called via the path \\wsl$\Ubuntu\home\\.\. Quickly it becomes clear that PHPStorm does not reliably recognize changes to the files. As a workaround you can move the projects to the file system of WSL2, for example to /home//./. The project itself can be located under /mnt/ (directly accessible via Windows Explorer), but then the performance is quite bad. For each Linux distribution, it is possible to specify individually which WSL version is to be used.PHPStorm can of course also be installed normally, as you know it from Windows programs: Furthermore, the GPU can be accessed from the Linux environment, which is particularly useful for applications with large datasets such as machine learning and data science.Įven though the use of WSL2 is recommended on modern systems, both versions can be operated in parallel. You can also configure a custom File Watcher to run any other third.

PhpStorm provides predefined File Watcher templates for a number of such standard popular third-party tools ( compilers, compressors, prettifiers, and others).
Phpstorm wsl2 software#
In practice, this means that even complex software like Docker can be operated within WSL2. A File Watcher is a PhpStorm system that tracks changes to your files and runs a third-party standalone application.
Phpstorm wsl2 full#
In contrast, WSL2’s kernel virtualisation performs full system call compatibility. Since WSL1 uses a translation layer to mediate between Linux and Windows, some specialised Linux software is left out in this version of WSL. That the kernel is maintained as part of the regular Windows updates makes it more convenient for its users, too. Furthermore, WSL2 requires less memory than the previous version.
Phpstorm wsl2 code#
In use, this is reflected in the faster code execution by a factor of about two to twenty. This is a kernel specially optimised for WSL2 both in terms of size and performance and is based on the stable original code from ‘’. While the functionality of the Linux interface provided by WSL1 was limited, WSL2 uses a complete Linux kernel. The virtual machine used for this runs on the native Windows hypervisor, hyper-V. While WSL1 provided a compatibility layer for translating code execution between Windows and Linux, WSL2 relies on the virtualisation of a Linux operating system. The fundamental difference between WSL2 and its predecessor lies in the architecture of the software.
