when running C/C++ code in VS Code, it runs in debug console instead of integrated terminal

Viewed 33

I have recently started learning C/C++ so I installed the C/C++ extension on my vscode. I followed this link to installing it: [https://code.visualstudio.com/docs/cpp/config-clang-mac#_run-helloworldcpp][1]

Whenever I click the Run C/C++ option instead of running the program in the integrated terminal but instead it runs in the debug console which is not something I want and its very annoying because it keeps asking for permission to a folder. I have attached images to the test code I wrote, me selecting the run option and the result. note: This is only showing as code due to formatting error

[me selecting run code][2] [What actually shows in the integrated terminal of vscode][3] [The result that shows up in the debug console of vscode][4] [1]: https://code.visualstudio.com/docs/cpp/config-clang-mac#_run-helloworldcpp [2]: https://i.stack.imgur.com/ctOIf.png [3]: https://i.stack.imgur.com/UhWw2.png [4]: https://i.stack.imgur.com/GpRYh.png

1 Answers

on picture 3, just click "output" on the bottom of the screen will work!

Related