The output window in vs code is not editable, so how we can type the input when the program asks for it?

泄露秘密 提交于 2020-12-06 04:47:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!