Cannot edit in read-only editor VS Code
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.
- Go to File > Preference > Settings then
- type: run code and scroll down until you see code-runner: Run in terminal, There will be multiple options called "code-runner". In that you can find the option mentioned below.
- just check "Whether to run code in integrated terminal" and
- restart vscode.
For Mac users, it is Code > Preference > Settings.
If you can't find where to find code runner as said in Ali NoumSali Traore's answer, here's what you got to do:
- Go to extensions (Ctrl + Shift + X)
- Find code runner and click on the settings icon on bottom right of the code runner
- Click configure extensions settings
- Find code_runner: Run in terminal
- Check "Whether to run code in terminal"