https://code.visualstudio.com/docs/cpp/config-wsl
Install C/C++ IDE extension on VS Code
https://learn.microsoft.com/en-us/windows/wsl/install
Start WSL (with PowerShell) from the search prompt as administrator
-
Start running Ubuntu type Ubuntu in Window search box.
-
Install last updates of the Ubuntu package lists, GNU compiler tools and GDB debugger.