Whenever I press the button run C/C++ file
when in the OUTPUT
tab says “Cannot build and debug because the active file is not a C or C++ source file. (even when the file is)
PS D:codingc++> ^CPS D:codingc++>PS D:codingc++> & 'c:Usersjadh0.vscodeextensionsms-vscode.cpptools-1.20.5-win32-x64debugAdaptersbinWindowsDebugLauncher.exe' '--stdin=Microsoft-MIEngine-In-iraa3h0n.lvj' '--stdout=Microsoft-MIEngine-Out-cnsihaxi.a3v' '--stderr=Microsoft-MIEngine-Error-22bsatph.c0e' '--pid=Microsoft-MIEngine-Pid-dmpc4tnm.ukn' '--dbgExe=C:msys64ucrt64bingdb.exe' '--interpreter=mi'hello world```
Do you have any idea on how iIcan fix this?
Please note, I have tried checking on tasks.json
to check if everything was okay there
I have tried typing g++
in my TERMINAL
to check if G++ was installed correctly and it is because it gave me the error Fetal Error
I pressed F1
to try and change language mode to C++
I tried closing it but it reappeared
I tried launching as an admin. didn’t work
I tried to check on my DEBUG
tab everything seemed normal there though
Jad Haddad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.