0

当我在 VS Studio Code 上运行代码时,而不是在“输出”中获得输出,而是在“终端”中获得输出。

我以前在“输出”下得到它。我使用 Code Runner 作为扩展。

有人可以帮帮我吗。

谢谢你。

4

1 回答 1

0

The Code Runner extension runs code in the Output tab by default.

Run in output

However, you can set Code Runner to run in the Terminal tab by going to the Settings (Press Ctrl + ,) and then tick the Code-runner: Run in Terminal option:

Settings

After ticking this box, Code Runner now runs code inside the Terminal tab:

Run in terminal

Did you accidentally tick the Code-runner: Run In Terminal option? If so, untick that option so that Code Runner runs code inside the Output tab.

于 2020-10-30T03:40:43.150 回答