The exit code is 0, the terminal and debugger are going but for some reason it has my previous output "woohoo"
I got to this point after following a tutorial by Erik Yuzwa "How to set up VS Code for C++ and make your first program. I typed in the "WOOHOO" in the stead of hello world, and even before my little test code it yielded the same error in the output area.
This sounds kinds dumb but I'm trying to get started on my final project for my cpp class, but I had never attempted to use external software (the class uses zybooks)
#Keep on getting "Cannot build and debug because the active file is not a C or C++ source file."
3 messages · Page 1 of 1 (latest)
I'm not sure but did you make sure to rebuild your project after every change instead of just compiling it? You gotta rebuild then recompile to show any changes.
use the terminal, visual studio or another actual ide. i never use vscode for c++, c n everything else is fine but shit is ass for c++ and always broken