Search code examples
c++visual-studio-codevscode-code-runner

Code Runner in VSCode is running in output instead of CMD in the Terminal


I just re-installed my VSCode for some reason and after downloading the Code Runner extension, it is processing all the commands in the OUTPUT window instead of CMD in the Terminal...

I am compiling my C++ code so I want that cd and g++ command in my CMD window, and not in the output one...


Solution

  • You can specify to run in the integrated terminal per their configuration setting by putting the following in your settings.json file:

    "code-runner.runInTerminal": true
    

    The setting is defaulted to false.