Search code examples
visual-studio-codeuser-input

Why cant I take user input in VS code?


How can I take a user-input in VS code? Here's my launch.json file:

{
"version": "0.2.0",
"configurations": [
    {
        "name": "Python",
        "type": "python",
        "request": "launch",
        "stopOnEntry": true,
        "pythonPath": "${config:python.interpreterPath}",
        "program": "${file}",
        "debugOptions": [
            "WaitOnAbnormalExit",
            "WaitOnNormalExit",
            "RedirectOutput"
        ],
        "console": "integratedTerminal"
    }
]}

What else i need to do?


Solution

  • set this.

    {
        "code-runner.runInTerminal": true
    }
    

    This question is almost certainly a dupe of this