Its a pretty simple thing to do but there are a couple of little things that aren't so obvious. I put a step by step list of lines to copy and paste in the video comments at
Arduino IDE on Windows is slow. WSLg allows us to utilise the speedy Linux file system on a Win desktop to accelerate!