WSL2 terminal in PyCharm


To use the PyCharm terminal in WSL2 you can enter which shell should be used. As Ubuntu is my main development environment and therefore a shell inside ubuntu should be used I had to enter this in the terminal settings:

C:\Users\difu\AppData\Local\Microsoft\WindowsApps\ubuntu2004.exe

WSL2 terminal sessting