To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL. You can then use the `code` c code example
Example: setup vscode for wsl ubuntu c
sudo apt-get install build-essential gdb