

export QT_SCALE_FACTOR=2Įxport GDK_SCALE=2 Extra packages to enable PHPstorm preview functionality To resolve this, add the following two lines to your. On some systems you might have scaling issues. Happy developing! Optional Scaling on high DPI screens I'm a fan of Oh My Zsh and found this blog post of NillsF very interesting. the Microsoft Terminal could be configured a bit better. Now, you're ready to start developing! But. Sudo sh -c "echo \"fs.inotify.max_user_watches = 524288\" > /etc/nf"
PYCHARM WINDOWS INSTALL
To improve performance (and to fix the file sync complaints by PHPStorm), install inotify and increase the max amount of file watches in /etc/nf. export DISPLAY=$(awk '/^nameserver/ ' /dev/null 2>&1 &' Open Microsoft Terminal and open a new tab connecting to WSL 2 (CTRL+SHIFT+3).Ĭonfigure WSL 2 to use X410 by adding the following line in ~/.bashrc (create this file if it doesn't exist). If you encounter any issues with X410, or you want to automatically start it on boot, check out the X410 cookbook. If the firewall is not configured correctly, X410 won't work in WSL 2. Then, permit access through the Windows Firewall. Start X410 (it won't start automatically) and configure it to allow public access (right mouse button on the icon in task bar).
PYCHARM WINDOWS PASSWORD
This user is used in WSL 2 and the password is used to become root using sudo. The first time, Ubuntu installs itself in WSL 2 and asks your to create a user. "Open" Ubuntu 20.04 LTS by clicking on the icon in the start menu. X410 is not free, and some free alternatives are available (Google is your friend), but X410 just works and it costs only € 10,. Open the Microsoft Store and install Ubuntu 20.04 LTS, Terminal, and X410. Reboot your system, otherwise you will experience issues.Īfter the system has rebooted, set WSL 2 as default. Open a Powershell shell as administrator and execute the two commands below.
/pycharmstart-57e2cb405f9b586c351a4cf7.png)
Start by installing the Windows features Windows Subsystem Linux and Virtual Machine Platform on your system. The IDE's are running inside WSL 2 to have the best performance possible.
PYCHARM WINDOWS SOFTWARE
The minimum software I use for development tasks are WSL 2 with Ubuntu 20.04 LTS installed, Docker for Windows on WSL 2, Microsoft Terminal and Jetbrains IntelliJ, P圜harm and PHPStorm. This laptop combines a lot of processing power with excellent battery performance in a tiny slimbook. I develop on a Lenovo Yoga AMD Ryzen 4800U laptop with 16 GB of memory and 512 GB of NVME SSD. Fortunately, WSL 2 enables us to resolve these issues by running Docker in WSL 2 aswell as your favorite Jetbrains IDE! My setup Hardware
PYCHARM WINDOWS CODE
Mounting source code into a Docker container still causes very poor performance. Docker resolves some of these issues, but Docker on Windows is still running on a Hyper-V Virtual Machine. Mounting source code into a Linux Virtual Machines causes very poor I/O performance, especially when you work on large projects with a lot of (composer) packages and (frontend) libraries.

On Windows you need a Linux Virtual Machine to install Linux software. The advantage of MacOS is that you are able to install all software locally using Homebrew.

PHP, MySQL and a web server like Nginx, just work better on Linux based systems. The development experience on MacOS was a lot better than developing on a Windows system because of the special needs that comes with web development. Untill this year, I mainly developed on a MacOS system when working for my own business.
