#include stdio.h cannot open source file; andDownload Visual Studio Code & make sure you install C/C++ & C/C++ Extension Pack in extensions
Go to Remote Explorer -> Select Connect to WSL
(https://i.sstatic.net/fLVNw.png)
Go to File -> Open Folder -> enter C directory /mnt/c
Enter Ctrl + Shift + P -> Type configurations -> Select (UI) -> Enter /usr/bin/gcc in Complier Path
Lastly, BE VERY SURE to set IntelliSenseMode to linux-gcc-x64 or any x64 compiler instead of x86 because x64 is for 32-bit compilers while x84 is for 64-bit compilers which gcc in Ubuntu workspace might not support.
(https://i.sstatic.net/qT8zU.png)
Voila! There should not be any squiggle lines afterwards.
Please Vote this answer if it helped you!