If it doesn't work, make sure the paths and name of the Linux dist are correct. C:\Windows\System32\wslg.exe -d Ubuntu -cd "~" - ~/.local/share/JetBrains/Toolbox/scripts/phpstorm As the target, fill in the line below as your target. Open the directory you want it in, click New -> Shortcut. In order to make it easier to start, we can create a shortcut in our start menu (open %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs) or on our desktop. In my case that's PhpStorm.Īfter installing PhpStorm, we can launch it from the toolbox and it should work perfectly. From here we can install any JetBrains product we want. A Linux application inside your Windows desktop. This should launch a new window with the JetBrains Toolbox. Now that we've properly installed the jetbrains-toolbox, we can launch it! $ jetbrains-toolbox $ sudo ln -s ~/.local/share/jetbrains-toolbox/jetbrains-toolbox /usr/local/bin/jetbrains-toolbox We can symlink it to a directory that's in our $PATH, so we can execute it regardless of where we are. $ mv jetbrains-toolbox-1.7/jetbrains-toolbox ~/.local/share/jetbrains-toolbox/jetbrains-toolbox Let's move this binary to a logical place in our filesystem. Then use wget to download it to your home directory. Go to the JetBrains Toolbox page and copy the download link for the. Let's download JetBrains Toolbox, a great way to manage your JetBrains products. Install a recent version of Ubuntu inside your WSL2.Extra: Download Windows Terminal for a better terminal experience.Download the latest version of WSL2 from the Microsoft Store.So now, we can have our project code live in Linux, so that your container is fast, and start our IDE from inside Linux as well, so that your IDE is fast too! Prerequisites Thanks to WSLg, we can now run applications, like our IDE, from inside Linux, as if it was a normal Windows application. WSLg, a new feature in the latest version of WSL2 on Windows 11, is a game changer. But now your IDE is suddenly slower because now your IDE is reading from a mounted volume. You also have the choice to put your project code inside your Linux filesystem and point your IDE to that folder. It also introduced other challenges like file permissions. Your project code lives on your Windows filesystem, but your docker environment runs from a virtualized environment, causing a lot of lag since it's reading from a mounted Windows volume. This introduces a new problem mounted volumes. Both Windows and macOS run a layer of virtualization to bridge the gap for Docker to work. When working with Docker on a non-Linux based environment, you're always dealing with some form of virtualization. In my opinion this is the last step needed to make Windows a much more viable environment for developing PHP applications. Microsoft has introduced some awesome stuff with WSL2 and in particular WSLg (Windows Subsystem for Linux GUI). The full list of changes is available in the release notes.Īnd as always, please feel free to report any issues you encounter to our tracker or here in the comments.Installing PhpStorm in WSL2 GUI (WSLg) 4th December 2022 Problem Fixed: Rename of a promoted property does not change parameter name in another file.Fixed: No type inference on instanceof = false.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |