1

How would I enter user text (entered via cin) if I build the file using the top right button in the image below?

enter image description here

Is there a plugin that I have to use to disable the readonly console?

2
  • What about this: code.visualstudio.com/docs/cpp/… What is your setting currently? Commented Mar 3, 2020 at 2:05
  • @JerryJeremiah I prefer the convenience of pressing the button and to launch my program automatically Commented Mar 3, 2020 at 2:08

1 Answer 1

1

I believe that this is code runner extension, which by default disables (REPL) interactive terminal. To enable it, add this to your vscode json settings:

"code-runner.runInTerminal": true

Or open ui settings: type "code runner terminal" and check the code-runner: Run In Terminal option

Next time you will run this code, it will run in the terminal.

Take a look at the configuration section config

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.