问题
The Error is shown when I input anything in the output window
回答1:
As the name implies, output window is only for displaying output. It seems that you're using VSCode Coderunner extension, which by default runs program in output window.
To change it to terminal, simply put :
"code-runner.runInTerminal": true
In your VSCode User Settings (shortcut: Ctrl
+ ,
).
回答2:
Type the input in the console, not the output window.
回答3:
you cant input anything in output window. if you want make any change or edit in output section you should first do debug in console box and then you can make any change you want
回答4:
Use the shortcut command Shift + Ctrl + X to bring out the extensions side bar, Now in the search extensions in market place entry input "@installed code runner", Make sure you have installed code runner extension (If you haven't do that now), Next right click on the extension and select extension settings, Scroll down to run in terminal, finally select the check button. That should do it.
来源:https://stackoverflow.com/questions/51047167/the-output-window-in-vs-code-is-not-editable-so-how-we-can-type-the-input-when