-2

Can you get input from a user in the OUTPUT section instead of the TERMINAL section in Visual Studio Code?

I just installed Visual Studio Code and when I try to get input from the user, the cursor in the output terminal doesn't even blink to allow input to be entered.

Unless I go to the TERMINAL section I can't enter any input. What is the problem?

I am using python.

Liam
  • 461
  • 4
  • 27
Joe Konlan
  • 11
  • 2

1 Answers1

0

If you download the extension named "code runner", there will be three options for you to choose to run the code.

enter image description here

enter image description here

The result will shows in the OUTPUT if you choose the first "run code". You cannot type anything in it. This is the setting of output. We cannot modify this.

The result will shows in terminal if you choose the seconde "run python file". You can use the terminal like cmd or any other shells.

The third is for debugging, it has nothing to do with this problem.

MingJie-MSFT
  • 5,569
  • 1
  • 2
  • 13