I am using Visual Studio Code V 1.31.1. I used an input function but I can't write an input in output panel it shows this error
Cannot edit in read-only editor.
Please help me solve this problem.
I am using Visual Studio Code V 1.31.1. I used an input function but I can't write an input in output panel it shows this error
Cannot edit in read-only editor.
Please help me solve this problem.
You are in the "Output" tab instead of the Terminal. The output tab is actually only for you to read from.
Press
F5
to beginDebugging
and it'll bring you into the Terminal tab.The terminal is interactive, so you can read output AND type back. It is indeed a console prompt/ terminal (hence its name).
If your code takes input from a user you can't just use output tab. You have to use any terminal as Jordan Stefanelli have said.