Why does Code Runner in VSCode not show the correct output in Terminal?

62 Views Asked by At

I am following the first Lecture for installing c++ mingw compiler for vscode (Jenny's Lectures CS IT) and after installing the code runner extension, the result of the program should be printed to terminal, in this case, Hello world.

However, my result for the same thing is this: cd "c:\Users\jesss\OneDrive\Documents\C++" ; if ($?) { g++ setup.cpp -o setup } ; if ($?) { .\setup }

Why is this and how do I fix it to ensure this runs as expected?

TLDR: Pressed the run code button in vscode and expected Hello World.

Received cd "c:\Users\jesss\OneDrive\Documents\C++" ; if ($?) { g++ setup.cpp -o setup } ; if ($?) { .\setup }

Can confirm code runner run in terminal is checked in settings

0

There are 0 best solutions below