currently I installed mingw with gcc, g++, gdb in my Windows 10. Kindof set the vscode also for c/cpp. It works file when I open a folder in vscode. It
mingw
vscode