As you can see, there is no output shown in output section. But the output is shown in terminal tab. Can someone help me in getting the output in output tab instead of Terminal tab ?
Asked
Active
Viewed 1,098 times
0
-
Does this answer your question? [How can I run code in the terminal rather than the output panel using the Code Runner VS Code extension?](https://stackoverflow.com/questions/66025635/how-can-i-run-code-in-the-terminal-rather-than-the-output-panel-using-the-code-r) – starball Aug 21 '23 at 16:58
3 Answers
0
that is because you used the code runner extension, am i right? It runs the code by using the command prompt or terminal and run the code with the directory to your file. So if you use code runner extension, it will run the code in the terminal because it uses the terminal.

Owen Valentinus
- 611
- 4
- 12
0
Your code is indeed supposed to be run from the terminal because you used the code-runner extension. Even though you used another method like running the code from python, it will still be running from the terminal.
0
Put the following in your settings.json file:
"code-runner.runInTerminal" : true
Courtesy of Code Runner in VSCode is running in output instead of CMD in the Terminal (the opposite question).

starball
- 20,030
- 7
- 43
- 238