Build environment on windows 10

Hi,
I actually wanted to know whether I should try building code to run on my pixhawk on WSL, or on eclipse? Which one would be better .

WSL is better.
cygwin is not really supported anymore. It might work, but it is not recommended.

The instructions for WSL are quite clear, and it can be set up in a matter of minutes, depending on your comfort level with the command line and internet connection speed.

If you want a graphical editor, VS Code is well supported and works nicely with the environment.