

If you have a insider preview of Windows 10, you may use the wayland server.You can change the used distribution with the "distributionName": "Ubuntu-20.04" launch profile parameter of the VS WSL 2 Extension.You can list your active distributions with wslconfig /l and change the default with wslconfig /s "Ubuntu-20.04".

You can switch between versions of a distribution using wsl -set-version "Ubuntu-20.04" 1.

